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‘解决办法
789 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'
|
6月前
|
Python
AttributeError: module ‘scipy.misc‘ has no attribute ‘imread‘,imresize,imsave等问题
AttributeError: module ‘scipy.misc‘ has no attribute ‘imread‘,imresize,imsave等问题
75 1
|
4月前
|
计算机视觉 Python
AttributeError: module ‘cv2‘ has no attribute ‘face‘
AttributeError: module ‘cv2‘ has no attribute ‘face‘
|
6月前
|
Python
AttributeError: module ‘numpy‘ has no attribute ‘int‘.
AttributeError: module ‘numpy‘ has no attribute ‘int‘.
102 0
AttributeError: module ‘torch.utils‘ has no attribute ‘data‘
属性错误:模块的'torch.utils'没有属性'data'
96 0
|
Python
numpy 报错:”AttributeError: module ‘numpy‘ has no attribute ‘bool‘“
numpy 报错:”AttributeError: module ‘numpy‘ has no attribute ‘bool‘“
2275 0
AttributeError: cannot assign module before Module.__init__() call 怎么解决?
这个错误通常是由于在__init__方法之外对模块中的某些成员进行了初始化或赋值操作,导致模块还没有被完全初始化就已经被调用了。为了解决这个问题,你需要将所有的初始化或赋值操作移到__init__方法内部。 例如,如果你有一个自定义模块MyModule,并且想要在其中定义一个类变量my_var,则应该将其放在__init__方法中:
744 0
|
PyTorch 算法框架/工具
问题解决:AttributeError: 'module' object has no attribute '_rebuild_tensor_v2'
问题解决:AttributeError: 'module' object has no attribute '_rebuild_tensor_v2'
274 0