0

当我尝试用 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

感谢您的帮助

让帕特

4

0 回答 0