Uploading Annotations from UI

Nucleus currently supports directly uploading bounding box annotations from UI in the following text file formats (TXT, JSON). For other annotation formats, please use the Nucleus API.

3318

COCO Object Detection

Sample annotation file structure from the COCO 2017 Validation Dataset.

{
    "info": {
        "description": "COCO 2017 Dataset",
        "url": "http://cocodataset.org",
        "version": "1.0",
        "year": 2017,
        "contributor": "COCO Consortium",
        "date_created": "2017/09/01"
    },
    "licenses": [
        {
            "url": "http://creativecommons.org/licenses/by-nc-sa/2.0/",
            "id": 1,
            "name": "Attribution-NonCommercial-ShareAlike License"
        },
        ...   
    ],
    "images": [
        {
        	"id": 397133
            "license": 4,
            "file_name": "000000397133.jpg",
            "height": 427,
            "width": 640,
            "date_captured": "2013-11-14 17:02:52",
        },
        ...
    ],
    "annotations": [
        {
            "id": 82445,
            "image_id": 397133,
            "category_id": 44,
            "bbox": [217.62, 240.54, 38.99, 57.75],
            "segmentation": [...],
            "area": 1481.38,
            "iscrowd": 0
        },
        ...
    ],
    "categories": [
        {	
            "id": 44,
            "name": "bottle"
            "supercategory": "kitchen",
        },
        ...
    ]
}

PASCAL Annotation Version 1.00

Sample annotation file from the Penn-Fudan Pedestrian Database.

# Compatible with PASCAL Annotation Version 1.00
Image filename : "PennFudanPed/PNGImages/FudanPed00001.png"
Image size (X x Y x C) : 559 x 536 x 3
Database : "The Penn-Fudan-Pedestrian Database"
Objects with ground truth : 2 { "PASpersonWalking" "PASpersonWalking" }
# Note there may be some objects not included in the ground truth list for they are severe-occluded
# or have very small size.
# Top left pixel co-ordinates : (1, 1)
# Details for pedestrian 1 ("PASpersonWalking")
Original label for object 1 "PASpersonWalking" : "PennFudanPed"
Bounding box for object 1 "PASpersonWalking" (Xmin, Ymin) - (Xmax, Ymax) : (160, 182) - (302, 431)
Pixel mask for object 1 "PASpersonWalking" : "PennFudanPed/PedMasks/FudanPed00001_mask.png"

# Details for pedestrian 2 ("PASpersonWalking")
Original label for object 2 "PASpersonWalking" : "PennFudanPed"
Bounding box for object 2 "PASpersonWalking" (Xmin, Ymin) - (Xmax, Ymax) : (420, 171) - (535, 486)
Pixel mask for object 2 "PASpersonWalking" : "PennFudanPed/PedMasks/FudanPed00001_mask.png"

Corresponding sample image, before and after annotations are applied from the file above.

3004