PyCharm中报错module ‘cv2.cv2‘ has no attribute ‘xfeatures2d‘
程序员文章站
2024-03-25 11:07:58
...
cv2库中没有这个方法 查资料说是收专利之类的,反正就是没了
只需要知道这个错跟我们代码没关系就行了
解决方法,卸载原来的opencv
安装一个低版本的opencv 3.4.2.16 这个应该是包含该方法的最高的版本
pip uninstall opencv-python
pip install opencv-python==3.4.2.16
pip install opencv-contrib-python==3.4.2.16
推荐阅读
-
解决报错 module ‘cv2.cv2‘ has no attribute ‘xfeatures2d‘
-
图像拼接遇到module 'cv2.cv2' has no attribute 'xfeatures2d'
-
PyCharm中报错module ‘cv2.cv2‘ has no attribute ‘xfeatures2d‘
-
报错:AttributeError: module 'cv2.cv2' has no attribute 'xfeatures2d'
-
编程报错:module 'cv2.cv2' has no attribute 'xfeatures2d'
-
OpenCV报错module 'cv2.cv2' has no attribute 'xfeatures2d'
-
pycharm安装 suds模块报错:AttributeError: module 'pip' has no attribute 'main'
-
python报错:AttributeError: 'module' object has no attribute 'xfeatures2d'
-
pycharm安装 suds模块报错:AttributeError: module 'pip' has no attribute 'main'
-
matplotlib中scatter报错module 'matplotlib' has no attribute 'scatter'