Many datasets have bounding boxes and no segmentation. It seems reasonable to support such datasets in a COCO-style format. The current logic in (Python) showAnns requires 'segmentation' to be present to display bounding boxes. Changing the following line to include or 'bbox' in anns[0] would enable showing datasets with bbox but not segmentation annotations;
|
if 'segmentation' in anns[0] or 'keypoints' in anns[0]: |
Many datasets have bounding boxes and no segmentation. It seems reasonable to support such datasets in a COCO-style format. The current logic in (Python) showAnns requires
'segmentation'to be present to display bounding boxes. Changing the following line to includeor 'bbox' in anns[0]would enable showing datasets with bbox but not segmentation annotations;cocoapi/PythonAPI/pycocotools/coco.py
Line 241 in 8c9bcc3