【发布时间】:2018-11-01 22:13:24
【问题描述】:
我最近使用 OpenCV 3.4.1 切换回 python 进行面部检测和模式识别但是在运行 OpenCV 进行点识别时,我得到了错误
AttributeError: module 'cv2.cv2' has no attribute 'SIFT_create'
我已阅读将行从 sift = cv2.SIFT_create() 更改为 sift = sift = cv2.xfeatures2d.SIFT_create() 应该可以解决这个问题。
但是我得到一个错误
AttributeError: module 'cv2.cv2' has no attribute 'xfeatures2d'.
xfeatures2d 是否应该包含在 OpenCV 中?关于如何解决这个问题的任何建议?谢谢!
【问题讨论】:
-
stackoverflow.com/a/50469642/9709132 这就是为我解决的问题。祝你好运!