module documentation

Utilities for working with datasets in VOC format.

Copyright 2017-2025, Voxel51, Inc.

Class VOCAnnotation Class representing a VOC annotations file.
Class VOCAnnotationWriter Class for writing annotations in VOC format.
Class VOCBoundingBox A bounding box in VOC detection format.
Class VOCDetectionDatasetExporter Exporter that writes VOC detection datasets to disk.
Class VOCDetectionDatasetImporter Importer for VOC detection datasets stored on disk.
Class VOCObject An object in VOC detection format.
Function load_voc_detection_annotations Loads the VOC detection annotations from the given XML file.
Constant VOC_DETECTION_CLASSES Undocumented
Variable logger Undocumented
Function _ensure_list Undocumented
Function _get_attributes Undocumented
Function _parse_attribute Undocumented
def load_voc_detection_annotations(xml_path): (source)

Loads the VOC detection annotations from the given XML file.

See :ref:`this page <VOCDetectionDataset-import>` for format details.

Parameters
xml_paththe path to the annotations XML file
Returns
a VOCAnnotation instance
VOC_DETECTION_CLASSES: list[str] = (source)

Undocumented

Value
['aeroplane',
 'bicycle',
 'bird',
 'boat',
 'bottle',
 'bus',
 'car',
...

Undocumented

def _ensure_list(value): (source)

Undocumented

def _get_attributes(label, extra_attrs): (source)

Undocumented

def _parse_attribute(value): (source)

Undocumented