# yolov8_bbox_exporter

Python API: `luxonis_ml.data.exporters.yolov8_bbox_exporter`

## Classes

| Name | Description |
| --- | --- |
|
[`YoloV8Exporter`](https://docs.luxonis.com/software-v3/ai-inference/model-source/training/luxonis-ml/luxonis-ml-api-reference/data/exporters/yolov8_bbox_exporter.md)
| Export bounding-box annotations in YOLOv8 format. |

### class `YoloV8Exporter`

```python
class YoloV8Exporter(BaseExporter)
```

Export bounding-box annotations in YOLOv8 format.

Attributes

| Name | Type | Description |
| --- | --- | --- |
| `class_names` | `list[str]` | Class names ordered by class ID. |
| `class_to_id` | `dict[str, int]` | Class-name to class-ID mapping. |
| `current_size` | `int` |  |

Methods

| Name | Description |
| --- | --- |
|
[`__init__`](https://docs.luxonis.com/software-v3/ai-inference/model-source/training/luxonis-ml/luxonis-ml-api-reference/data/exporters/yolov8_bbox_exporter.md)
| |
|
[`export`](https://docs.luxonis.com/software-v3/ai-inference/model-source/training/luxonis-ml/luxonis-ml-api-reference/data/exporters/yolov8_bbox_exporter.md)
| Convert the prepared dataset into the exporter's format. |
|
[`get_split_names`](https://docs.luxonis.com/software-v3/ai-inference/model-source/training/luxonis-ml/luxonis-ml-api-reference/data/exporters/yolov8_bbox_exporter.md)
| |
|
[`supported_ann_types`](https://docs.luxonis.com/software-v3/ai-inference/model-source/training/luxonis-ml/luxonis-ml-api-reference/data/exporters/yolov8_bbox_exporter.md)
| Return task types supported by this exporter. |

#### method `__init__`

```python
def __init__(
    dataset_identifier: str,
    output_path: Path,
    max_partition_size_gb: float | None,
)
```

#### method `export`

```python
def export(prepared_ldf: PreparedLDF)
```

Convert the prepared dataset into the exporter's format.

Args

| Name | Type | Description | Default |
| --- | --- | --- | --- |
| `prepared_ldf` | `PreparedLDF` | Dataset data prepared for export. | required |

Raises

| Type | Description |
| --- | --- |
| `NotImplementedError` | Always raised by the abstract base implementation. |

#### method `get_split_names`

```python
def get_split_names() -> dict[str, str]
```

#### method `supported_ann_types`

```python
def supported_ann_types() -> list[str]
```

Return task types supported by this exporter.

Returns

| Type | Description |
| --- | --- |
| `list[str]` | Supported annotation task types. |

Raises

| Type | Description |
| --- | --- |
| `NotImplementedError` | Always raised by the abstract base implementation. |

## Module Attributes

| Name | Type | Description |
| --- | --- | --- |
|
[`BBox`](https://docs.luxonis.com/software-v3/ai-inference/model-source/training/luxonis-ml/luxonis-ml-api-reference/data/exporters/yolov8_bbox_exporter.md)
| `TypeAlias` | |

### type alias `BBox`

```python
BBox: TypeAlias = tuple[int, float, float, float, float]
```
