# constants

Python API: `depthai_nodes.constants`

## Module Attributes

| Name | Type | Description |
| --- | --- | --- |
| [`DETECTION_BORDER_THICKNESS_PER_RESOLUTION`](https://docs.luxonis.com/software-v3/ai-inference/inference/depthai-nodes/depthai-nodes-api-reference/constants.md#constants-Module-Attributes-DETECTION_BORDER_THICKNESS_PER_RESOLUTION) |  |  |
| [`DETECTION_CORNER_SIZE`](https://docs.luxonis.com/software-v3/ai-inference/inference/depthai-nodes/depthai-nodes-api-reference/constants.md#constants-Module-Attributes-DETECTION_CORNER_SIZE) | `float` |  |
| [`FONT_BACKGROUND_COLOR`](https://docs.luxonis.com/software-v3/ai-inference/inference/depthai-nodes/depthai-nodes-api-reference/constants.md#constants-Module-Attributes-FONT_BACKGROUND_COLOR) |  |  |
| [`FONT_COLOR`](https://docs.luxonis.com/software-v3/ai-inference/inference/depthai-nodes/depthai-nodes-api-reference/constants.md#constants-Module-Attributes-FONT_COLOR) |  |  |
| [`FONT_SIZE_PER_HEIGHT`](https://docs.luxonis.com/software-v3/ai-inference/inference/depthai-nodes/depthai-nodes-api-reference/constants.md#constants-Module-Attributes-FONT_SIZE_PER_HEIGHT) |  |  |
| [`KEYPOINT_COLOR`](https://docs.luxonis.com/software-v3/ai-inference/inference/depthai-nodes/depthai-nodes-api-reference/constants.md#constants-Module-Attributes-KEYPOINT_COLOR) |  |  |
| [`KEYPOINT_THICKNESS_PER_RESOLUTION`](https://docs.luxonis.com/software-v3/ai-inference/inference/depthai-nodes/depthai-nodes-api-reference/constants.md#constants-Module-Attributes-KEYPOINT_THICKNESS_PER_RESOLUTION) |  |  |
| [`PRIMARY_COLOR`](https://docs.luxonis.com/software-v3/ai-inference/inference/depthai-nodes/depthai-nodes-api-reference/constants.md#constants-Module-Attributes-PRIMARY_COLOR) |  |  |
| [`SECONDARY_COLOR`](https://docs.luxonis.com/software-v3/ai-inference/inference/depthai-nodes/depthai-nodes-api-reference/constants.md#constants-Module-Attributes-SECONDARY_COLOR) |  |  |
| [`SMALLER_DETECTION_BORDER_THICKNESS_PER_RESOLUTION`](https://docs.luxonis.com/software-v3/ai-inference/inference/depthai-nodes/depthai-nodes-api-reference/constants.md#constants-Module-Attributes-SMALLER_DETECTION_BORDER_THICKNESS_PER_RESOLUTION) |  |  |
| [`SMALLER_DETECTION_CORNER_SIZE`](https://docs.luxonis.com/software-v3/ai-inference/inference/depthai-nodes/depthai-nodes-api-reference/constants.md#constants-Module-Attributes-SMALLER_DETECTION_CORNER_SIZE) |  |  |
| [`SMALLER_DETECTION_THRESHOLD`](https://docs.luxonis.com/software-v3/ai-inference/inference/depthai-nodes/depthai-nodes-api-reference/constants.md#constants-Module-Attributes-SMALLER_DETECTION_THRESHOLD) |  |  |
| [`SMALLER_FONT_SIZE_PER_HEIGHT`](https://docs.luxonis.com/software-v3/ai-inference/inference/depthai-nodes/depthai-nodes-api-reference/constants.md#constants-Module-Attributes-SMALLER_FONT_SIZE_PER_HEIGHT) |  |  |
| [`SMALLER_KEYPOINT_THICKNESS_PER_RESOLUTION`](https://docs.luxonis.com/software-v3/ai-inference/inference/depthai-nodes/depthai-nodes-api-reference/constants.md#constants-Module-Attributes-SMALLER_KEYPOINT_THICKNESS_PER_RESOLUTION) |  |  |
| [`TRANSPARENT_PRIMARY_COLOR`](https://docs.luxonis.com/software-v3/ai-inference/inference/depthai-nodes/depthai-nodes-api-reference/constants.md#constants-Module-Attributes-TRANSPARENT_PRIMARY_COLOR) |  |  |

### constant `DETECTION_BORDER_THICKNESS_PER_RESOLUTION`

```python
DETECTION_BORDER_THICKNESS_PER_RESOLUTION = 1 / 300
```

### constant `DETECTION_CORNER_SIZE`

```python
DETECTION_CORNER_SIZE: float = 0.04
```

### constant `FONT_BACKGROUND_COLOR`

```python
FONT_BACKGROUND_COLOR = dai.Color(0.0, 0.0, 0.0, 0.0)
```

### constant `FONT_COLOR`

```python
FONT_COLOR = dai.Color(float(255 / 255), float(255 / 255), float(255 / 255), 1.0)
```

### constant `FONT_SIZE_PER_HEIGHT`

```python
FONT_SIZE_PER_HEIGHT = 1 / 30
```

### constant `KEYPOINT_COLOR`

```python
KEYPOINT_COLOR = dai.Color(0.0, 1.0, 1.0, 1.0)
```

### constant `KEYPOINT_THICKNESS_PER_RESOLUTION`

```python
KEYPOINT_THICKNESS_PER_RESOLUTION = 1 / 300
```

### constant `PRIMARY_COLOR`

```python
PRIMARY_COLOR = dai.Color(float(21 / 255), float(127 / 255), float(88 / 255), 1.0)
```

### constant `SECONDARY_COLOR`

```python
SECONDARY_COLOR = dai.Color(float(240 / 255), float(240 / 255), float(240 / 255), 1.0)
```

### constant `SMALLER_DETECTION_BORDER_THICKNESS_PER_RESOLUTION`

```python
SMALLER_DETECTION_BORDER_THICKNESS_PER_RESOLUTION = DETECTION_BORDER_THICKNESS_PER_RESOLUTION / 2
```

### constant `SMALLER_DETECTION_CORNER_SIZE`

```python
SMALLER_DETECTION_CORNER_SIZE = DETECTION_CORNER_SIZE / 2
```

### constant `SMALLER_DETECTION_THRESHOLD`

```python
SMALLER_DETECTION_THRESHOLD = DETECTION_CORNER_SIZE * 3
```

### constant `SMALLER_FONT_SIZE_PER_HEIGHT`

```python
SMALLER_FONT_SIZE_PER_HEIGHT = FONT_SIZE_PER_HEIGHT / 2
```

### constant `SMALLER_KEYPOINT_THICKNESS_PER_RESOLUTION`

```python
SMALLER_KEYPOINT_THICKNESS_PER_RESOLUTION = KEYPOINT_THICKNESS_PER_RESOLUTION / 2
```

### constant `TRANSPARENT_PRIMARY_COLOR`

```python
TRANSPARENT_PRIMARY_COLOR = dai.Color(
    float(21 / 255),
    float(127 / 255),
    float(88 / 255),
    0.2,
)
```
