SIFT AttributeError: module 'cv2.cv2' has no attribute 'xfeatures2d'
Day09作業執行程式時出現錯誤訊息Day09 SIFT AttributeError: module 'cv2.cv2' has no attribute 'xfeatures2d',試著下指令pip install opencv-contrib-python==3.4.2.16卻又出現錯誤訊息
ERROR: Could not find a version that satisfies the requirement opencv-contrib-python==3.4.2.16
ERROR: No matching distribution found for opencv-contrib-python==3.4.2.16
如下圖(因上傳圖片失敗所以用連結)
https://www.dropbox.com/s/o8i74p523rkerbo/螢幕截圖 2020-06-13 22.04.16.png?dl=0
有試過安裝他提到的幾個版本,但還是一樣出現AttributeError
請問還有其他方法嘗試嗎?
OS為mas OS Catalina 10.15.4
Python版本如下圖(似乎有兩個,我跑程式應是都用Python3)
https://www.dropbox.com/s/1kl940vgbya36zo/螢幕截圖 2020-06-13 22.23.00.png?dl=0
PS.這個form可能有bug,剛剛送出直接噴錯現在全部重打一次...
回答列表
-
2020/06/18 上午 01:37Jeffrey贊同數:0不贊同數:0留言數:1
嘗試一下:
pip install opencv-python==3.4.2.16 -i "https://pypi.doubanio.com/simple/"
pip install opencv-contrib-python==3.4.2.16 -i "https://pypi.doubanio.com/simple/"
原文链接:https://blog.csdn.net/wmm131333/java/article/details/103359370