AttributeError: module 'cv2' has no attribute 'xfeatures2d'问题解决

简介: AttributeError: module 'cv2' has no attribute 'xfeatures2d'问题解决
!pip list|grep opencv
opencv-contrib-python         4.6.0.66
opencv-python                 4.6.0.66
img = cv.imread('/home/mw/input/opencv5111/opencv-data/fruits.jpg',0)
# Create SURF object. You can specify params here or later.
# Here I set Hessian Threshold to 400
# 就opencv4.4.0这个版本来说,SIFT方法已经可以直接使用了
# surf = cv.xfeatures2d.SURF_create(400)
surf = cv.SIFT_create(400)


目录
相关文章
|
数据处理 Python
AttributeError: module ‘numpy‘ has no attribute ‘array‘解决办法
AttributeError: module ‘numpy‘ has no attribute ‘array‘解决办法
867 0
|
TensorFlow 算法框架/工具 Python
成功解决AttributeError: module 'numpy' has no attribute 'equal'
成功解决AttributeError: module 'numpy' has no attribute 'equal'
成功解决AttributeError: module 'numpy' has no attribute 'equal'
成功解决AttributeError: module 'numpy' has no attribute 'integer'
成功解决AttributeError: module 'numpy' has no attribute 'integer'
成功解决AttributeError: module 'numpy' has no attribute 'integer'
|
8月前
|
Python
AttributeError: module ‘scipy.misc‘ has no attribute ‘imread‘,imresize,imsave等问题
AttributeError: module ‘scipy.misc‘ has no attribute ‘imread‘,imresize,imsave等问题
93 1
|
5月前
|
Python
module 'numpy' has no attribute 'int'.
module 'numpy' has no attribute 'int'.
175 0
|
6月前
|
计算机视觉 Python
AttributeError: module ‘cv2‘ has no attribute ‘face‘
AttributeError: module ‘cv2‘ has no attribute ‘face‘
127 0
|
8月前
|
Python
AttributeError: module ‘numpy‘ has no attribute ‘int‘.
AttributeError: module ‘numpy‘ has no attribute ‘int‘.
203 0
|
Python
numpy 报错:”AttributeError: module ‘numpy‘ has no attribute ‘bool‘“
numpy 报错:”AttributeError: module ‘numpy‘ has no attribute ‘bool‘“
2315 0
AttributeError: module ‘torch.utils‘ has no attribute ‘data‘
属性错误:模块的'torch.utils'没有属性'data'
114 0
|
算法 计算机视觉 Python
【完美解决方案】module ‘cv2.cv2‘ has no attribute ‘xfeatures2d‘
【完美解决方案】module ‘cv2.cv2‘ has no attribute ‘xfeatures2d‘
1359 0