Convert Datumaro annotation data to Farmland BBox JSON format
• 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
• annotation: Array of bounding box objects with xPos, yPos, width, height, classId
• Bounding box format: Top-left coordinates (xPos, yPos) with width and height in pixels
• Class IDs are fixed numeric references (0-10) with predefined class names
• Supports multiple annotations from multiple images in a single file
• Note: Class mapping is fixed and not included in output files
• Datumaro → Farmland BBox: Converts polygon and bbox annotations to top-left based bounding boxes
• Polygon Conversion: Converts polygon points to bounding box coordinates
• Label Mapping: Maps Datumaro category names to fixed Farmland class IDs
• Class Dictionary: Uses predefined fixed class mapping (0-10)
• Coordinate System: Uses top-left coordinates instead of center-based coordinates
• Fallback: Unknown categories default to "object" class (ID 6)