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‘解决办法
826 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'
|
7月前
|
Python
AttributeError: module ‘scipy.misc‘ has no attribute ‘imread‘,imresize,imsave等问题
AttributeError: module ‘scipy.misc‘ has no attribute ‘imread‘,imresize,imsave等问题
81 1
|
5月前
|
计算机视觉 Python
AttributeError: module ‘cv2‘ has no attribute ‘face‘
AttributeError: module ‘cv2‘ has no attribute ‘face‘
|
7月前
|
Python
AttributeError: module ‘numpy‘ has no attribute ‘int‘.
AttributeError: module ‘numpy‘ has no attribute ‘int‘.
115 0
AttributeError: module ‘torch.utils‘ has no attribute ‘data‘
属性错误:模块的'torch.utils'没有属性'data'
101 0
|
Python
numpy 报错:”AttributeError: module ‘numpy‘ has no attribute ‘bool‘“
numpy 报错:”AttributeError: module ‘numpy‘ has no attribute ‘bool‘“
2290 0
|
PyTorch 算法框架/工具
问题解决:AttributeError: 'module' object has no attribute '_rebuild_tensor_v2'
问题解决:AttributeError: 'module' object has no attribute '_rebuild_tensor_v2'
276 0
|
Python
AttributeError: 'module' object has no attribute 'main'
AttributeError: 'module' object has no attribute 'main'
211 0
AttributeError: 'module' object has no attribute 'main'