Convert between Datumaro and Custom Target JSON annotation formats with reversible conversion
• Structure: items (each with image and annotations), nested categories.label.labels
• Geometry: Supports points (polygons) and bbox (bounding boxes)
• Categories: Nested structure with categories.label.labels array containing label definitions
• Label References: Annotations use label_id to reference category indices
• dtype: "label"
• img_name: Image filename
• imgHeight, imgWidth: Image dimensions
• objects: Array of annotation objects with label, polygon, z_order
• object_cnt, class_cnts: Object counts and class statistics
• Metadata: country, dataset, site, date, weather, light, labeled_date
• Datumaro ↔ Custom Target: Bidirectional conversion for format verification
• Polygon Preservation: Maintains exact geometry during conversion cycles
• Label Mapping: Preserves annotation labels and their relationships
• Metadata Handling: Maintains image dimensions and annotation counts