instance Demo
配置完maskrcnn环境后,运行,可以直接得到结果,中间需要手动安装requests包:
conda install requests
Keypoints Demo
error: OpenCV(4.5.4) 👎 error: (-5:Bad argument) in function ‘putText’
Overload resolution failed:
- Can’t parse ‘org’. Sequence item with index 0 has a wrong type
这里主要是因为参数矩阵x y 要为 int 型,而代码中的x y 为浮点型,所以在x,y前面加上int强制转换
error: OpenCV(4.5.4) 👎 error: (-5:Bad argument) in function ‘resize’
Overload resolution failed:
- Can’t parse ‘dsize’. Sequence item with index 0 has a wrong type
- Can’t parse ‘dsize’. Sequence item with index 0 has a wrong type
同上改正即可
error: OpenCV(4.5.4) 👎 error: (-5:Bad argument) in function ‘line’
Overload resolution failed:
- Can’t parse ‘pt1’. Sequence item with index 0 has a wrong type
- Can’t parse ‘pt1’. Sequence item with index 0 has a wrong type
因为我不需要用到keypoints,所以没有往下深究,这里可以参考:https://blog.csdn.net/qq_43775672/article/details/121151457,怎么把tuple所有元素变成整型
注意,pycharm搜索文件时可以直接双击shift,然后全局搜索,一定要找对文件夹