【cocoAPI】cocoAPI使用

安装: pip install pycocotools

使用COCO api,需要首先import COCO的类,然后根据任务实例化

from pycocotools.coco import COCO
from pycocotools.cocoeval import COCOeval
from pycocotools import mask as maskUtils

coco = COCO(annfile) 
#annfile 是json文件路径

参考:

https://blog.csdn.net/zym19941119/article/details/80241663

https://blog.csdn.net/gzj2013/article/details/82385164

https://blog.csdn.net/u013735511/article/details/79099483

猜你喜欢

转载自blog.csdn.net/qq_30159015/article/details/82901099