![](/img/trans.png)
[英]module 'cv2.cv2' has no attribute 'xfeatures2d' and module 'cv2.cv2' has no attribute 'SIFT'
[英]module 'cv2.cv2' has no attribute 'xfeatures'
遇到,AttributeError: module 'cv2.cv2' has no attribute 'xfeatures'
更新了openCV的版本,安裝/更新了opencv-contrib-python,但錯誤依舊。
篩選 = cv2.xfeatures.SIFT_create()
我在做master project的時候遇到了同樣的問題。 嘗試 Python version=3.6,然后安裝最新版本的 OpenCV。
這是解決方案:
pip install opencv
# must install the extra package below
pip install opencv-contrib-python==3.3.0.10
希望它對你有用,祝你好運!
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.