COCO API安装

git clone https://github.com/pdollar/coco.git

cd coco/PythonAPI

python3 setup.py build_ext --inplace

python3 setup.py build_ext install

进入python3命令行就可以直接导入了,执行import pycocotools和from pycocotools.coco import COCO命令不报错说明已经安装成功了

猜你喜欢

转载自blog.csdn.net/yjfncu/article/details/79563890