Process all your datasets in one place

Comparison of Annotation Formats

Technical information and the difference between Microsoft COCO (Common Objects in Context) .JSON and PascalVOC .XML Annotation Formats





General

62

Score

41

Score

Winner
Publication 2014 2005
Example
{
    "info": {
        "year": "2021",
        "version": "1.0",
        "description": "Exported from NanoML.org",
        "contributor": "Peter",
        "url": "https://NanoML.org/datasets/test",
        "date_created": "2021-04-10T14:54:31+00:00"
    },
    "licenses": [
        {
	"url": "http://creativecommons.org/licenses/by-nc-sa/2.0/",
	"id": 1,
	"name": "Attribution-NonCommercial-ShareAlike License"
	}
    ],
    "categories": [
        {
	"id": 1,
	"name": "Car",
	"supercategory": "vehicle"
        }
    ],
    "images": [
        {
	"id": 0,
	"license": 1,
	"file_name": "000001.png",
	"height": 292,
	"width": 400,
	"date_captured": "2021-04-10T14:54:31+00:00"
    ],
    "annotations": [
        {
	"id": 0,
	"image_id": 0,
	"category_id": 1,
	"bbox": [
	128,
	259,
	103,
	30
	],
	"area": 3090,
	"segmentation": [],
	"iscrowd": 0
        }
    ]
}
                                                                                                        
<annotation> 
<folder>Training</folder>
<filename>000001.png</filename>
<path>/my/path/Training/000001.png</path>
<source>
<database>NanoML.org</database>
</source>
<size>
<width>224</width>
<height>224</height>
<depth>3</depth>
</size>
<object>
<name>Car</name>
<pose>Frontal</pose>
<truncated>0</truncated>
<difficult>0</difficult>
<bndbox>
<xmin>82</xmin>
<xmax>172</xmax>
<ymin>88</ymin>
<ymax>146</ymax>
</bndbox>

</object>
</annotation>
Properties
min. Size 1.05 kB 0.6 kB
Size per additional object 0.3 kB 0.25 kB
File Format .JSON .XML
Human readability Okay Good
Popularity
Google Trends Popularity Good Okay
Model availability Good Bad
Structure
Uses normalized values
One Annotation File per Image
LabelMap required
Supported Types
Bounding Box Support
Polygonal Segmentation Support
Dot annotation Support
Other
Recommended Tool Coco Annotation Tool Labellmg