python opencv中没有cv2.convexityDefects?(ubuntu 12.04)

时间:2012-07-04 15:45:09

标签: python ubuntu opencv

当我尝试使用opencv + python捕获图像中的凸性缺陷时,“python说”:

    defects = cv2.convexityDefects(cnt,hull)
    AttributeError: 'module' object has no attribute 'convexityDefects'

python脚本在ubuntu 12.04 + python 2.7 + opencv下从存储库运行。 代码已从http://opencvpython.blogspot.fr/2012/06/contours-4-ultimate.html

修改

感谢您的帮助

牛仔-PAT

0 个答案:

没有答案
相关问题