Farmland BBox Converter

Convert Datumaro annotation data to Farmland BBox JSON format

Datumaro to Farmland BBox Converter
Paste your Datumaro JSON content to convert to Farmland BBox format
Format Specifications
Supported formats and their structures

Datumaro 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

Farmland BBox Format

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

Fixed Class Mapping (not included in output):
0:person
1:baler
2:suv
3:truck
4:sedan
5:agriculture machine
6:object
7:fence
8:building
9:rubble
10:pole

Conversion Process

• 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)