• 在此记录一下实例分割coco的annotations.json的格式
''
annotations.json,整体是一个字典:
{
"info": {"description": null,
         "url": null, 
         "version": null, 
         "year": 2023, 
         "contributor": null, 
         "date_created": "2023-05-27 10:34:38.709025"},
"licenses": [{"url": null, "id": 0, "name": null}],
"images": [{"license": 0,
            "url": null,
            "file_name": "....jpg",
            "height": 800, "width": 800,
            "date_captured": null, "id": 0},
            {...},
            ...,
            {...}]
"type": "instances",
"annotations": [{"id": 0, "image_id": 0, "category_id": 1,
                 "segmentation": [[polygon]], "area": 57142.0, 
                 "bbox": [246.0, 165.0, 310.0, 239.0]([x,y,width,height],即左上角的坐标+宽高), "iscrowd": 0},
                {"id": 1, "image_id": 0, "category_id": 1, 
                 "segmentation": [[polygon]], "area": 59602.0, 
                 "bbox": [248.0, 164.0, 311.0, 238.0], "iscrowd": 0},
                {...},
                ...,
                {...}],
"categories": [{"supercategory": null, "id": 0, "name": "_background_"},
			   {"supercategory": null, "id": 1, "name": "cell"}] 
}
''
Logo

北京人形旗下天工造物具身智能开源社区,聚焦具身天工与慧思开物两大平台

更多推荐