Metadata-Version: 2.4
Name: airo-dataset-tools
Version: 2026.11.0
Summary: Scripts for loading and converting datasets for the Ghent University AI and Robotics Lab
Author: Victor-Louis De Gusseme
Author-email: victorlouisdg@gmail.com
Requires-Python: >=3.11
Description-Content-Type: text/markdown
Requires-Dist: numpy>=2.0
Requires-Dist: pydantic>2.0.0
Requires-Dist: opencv-contrib-python==4.10.0.84
Requires-Dist: pycocotools
Requires-Dist: xmltodict
Requires-Dist: tqdm
Requires-Dist: Pillow
Requires-Dist: types-Pillow
Requires-Dist: click
Requires-Dist: airo-typing>=2026.1.0
Requires-Dist: airo-spatial-algebra>=2026.1.0
Provides-Extra: augmentations
Requires-Dist: albumentations; extra == "augmentations"
Provides-Extra: fiftyone
Requires-Dist: fiftyone; extra == "fiftyone"
Dynamic: author
Dynamic: author-email
Dynamic: description
Dynamic: description-content-type
Dynamic: provides-extra
Dynamic: requires-dist
Dynamic: requires-python
Dynamic: summary

# airo-dataset-tools
Tools for working with datasets.
They fall into two categories:

[**COCO related tools**](https://github.com/airo-ugent/airo-mono/blob/main/airo-dataset-tools/airo_dataset_tools/coco_tools/README.md):
* COCO dataset loading (and creation)
* FiftyOne visualisation (optional, see [installation note](#fiftyone-installation))
* Albumentations transforms (optional, see [installation note](#augmentations-installation))
* COCO  to YOLO conversion.
* CVAT labeling workflow

[**Data formats**](https://github.com/airo-ugent/airo-mono/blob/main/airo-dataset-tools/airo_dataset_tools/data_parsers/README.md):
* 3D poses
* Camera instrinsics


## Augmentations installation

Albumentations (used for COCO dataset transforms) is an optional dependency. Install it with:

```bash
pip install "airo-dataset-tools[augmentations]"
```

> **Note:** `albumentations` installs `opencv-python-headless`, which conflicts with `opencv-contrib-python` (both write to the same `cv2` namespace). To ensure the contrib build takes precedence, reinstall it after:
> ```bash
> pip install --force-reinstall opencv-contrib-python==4.10.0.84
> ```

## FiftyOne installation

FiftyOne is an optional dependency. Install it with:

```bash
pip install "airo-dataset-tools[fiftyone]"
```

> **Note:** FiftyOne installs `opencv-python-headless`, which conflicts with `opencv-contrib-python` (both write to the same `cv2` namespace). To ensure the contrib build takes precedence, reinstall it after:
> ```bash
> pip install --force-reinstall opencv-contrib-python==4.10.0.84
> ```

> [Pydantic](https://docs.pydantic.dev/latest/) is used heavily throughout this package.
It allows you to easily create Python objects that can be saved and loaded to and from JSON files.

[**CVAT labeling workflow & tools**](https://github.com/airo-ugent/airo-mono/blob/main/airo-dataset-tools/airo_dataset_tools/cvat_labeling/readme.md)
