COCO数据集bbox和instance_masks可视化
参考博客:COCO数据集可视化物体检测标注格式-coco可视化1、物体框可视化from pycocotools.coco import COCOimport cv2 as cvimport osimport numpy as npimport randomimg_path = 'val2017/' # 把图片直接放在同一文件夹下annFile = 'instances_val2017.json' # 同样coco = COCO(annFile)cats = coco.load.