运行一段关于图像拼接的代码时,出现问题 AttributeError: module 'cv2.cv2' has no attribute 'xfeatures2d'

def __init__(self):self.surf = cv2.xfeatures2d.SURF_create()FLANN_INDEX_KDTREE = 0index_params = dict(algorithm=0, trees=5)search_params = dict(checks=50)self.flann = cv2.FlannBasedMatcher(index_params, search_params)

查找资料发现 'xfeatures2d'只有在opencv-contrib中才有,解决方法:

pip install opencv-contrib-python

AttributeError: module ‘cv2.cv2‘ has no attribute ‘xfeatures2d‘解决方法相关推荐

  1. 【Flask】flask-bootstrap报错AttributeError: module ‘dominate.tags‘ has no attribute ‘input‘解决方法

    问题 在使用flask-bootstrap渲染表单时,报错AttributeError: module 'dominate.tags' has no attribute 'input'. 解决方法 修 ...

  2. AttributeError: module ‘torchtext.data‘ has no attribute ‘Field‘ 解决

    AttributeError: module 'torchtext.data' has no attribute 'Field' 前言 伴随着 3月5日TorchText 0.9.0更新,一些API调 ...

  3. AttributeError: module ‘scipy.signal‘ has no attribute ‘correlation_lags‘

    一般这种问题,都是版本号不匹配的问题,通过 pip 更新安装包即可 我原来scipy的版本号是 1.5.2,执行代码 lags = signal.correlation_lags(len(u), le ...

  4. AttributeError: module ‘torch.distributed‘ has no attribute ‘_all_gather_base‘

    问题描述 安装完apex后,调用的是时候出现如下错误: File "/home/shuyuan/anaconda3/envs/shuyuan/lib/python3.8/site-packa ...

  5. 成功解决AttributeError: module ‘tornado.web‘ has no attribute ‘asynchronous‘

    成功解决AttributeError: module 'tornado.web' has no attribute 'asynchronous' 目录 解决问题 解决思路 解决方法 解决问题 Attr ...

  6. 成功解决AttributeError: module tensorflow.sets has no attribute intersection

    成功解决AttributeError: module tensorflow.sets   has no attribute intersection 目录 解决问题 解决思路 解决方法 T1.更新 t ...

  7. 成功解决AttributeError: module tensorflow.image has no attribute resize

    成功解决AttributeError: module tensorflow.image has no attribute resize 目录 解决问题 解决思路 解决方法 解决问题 Attribute ...

  8. 成功解决AttributeError: module 'torch.utils' has no attribute 'data'

    成功解决AttributeError: module 'torch.utils' has no attribute 'data' 目录 解决问题 解决思路 解决方法 解决问题 AttributeErr ...

  9. 报错与解决 | AttributeError: module ‘librosa.feature‘ has no attribute ‘rmse‘

    rmse → rms 代码:rmse = librosa.feature.rmse(y=y) 报错:AttributeError: module 'librosa.feature' has no at ...

最新文章

  1. 深度学习七个实用技巧
  2. document对象详解
  3. 用perl 实现 svn 差异备份
  4. Activiti工作流引擎使用详解(一)
  5. 应用指定显示到副屏_广电演播领域与舞台LED租赁显示屏如何去选择LED小间距屏...
  6. Android View体系(五)从源码解析View的事件分发机制
  7. php输出源文件,apt-get 按照php7后apache 输出php源文件
  8. 毕业设计(五)---spring学习笔记(3)之-dataSource,sessionFactory,hibernateTemplate,事务 的简单配置。...
  9. scala代码示例_Scala数组示例
  10. vue 封装dialog_GitHub - 1014156094/vue-mobile-dialog: Vue移动端基础组件 - 对话框
  11. CSDN图片去除水印
  12. 四月一个晴朗的早晨,遇见一个百分之百的女孩
  13. TMR磁传感器技术注释 | 自旋电子学(磁电子学)
  14. 基于python的scip库使用,从基础模型到复杂模型,从一维变量到三维变量
  15. 公链,多少资金盘假汝之名以行?
  16. 普拉图和施泰纳问题的实验解法
  17. 小字辈(左子右兄加强版)
  18. 服务器命令mv 文件夹,【cmd】cmd常用命令
  19. 论文阅读 End-to-End Multi-View Fusion for 3D Object Detection in Lidar Point Clouds
  20. Nodemcu 驱动WS2812点灯红色变绿色的原因及解决

热门文章

  1. 《Greenplum企业应用实战》一2.3 畅游Greenplum
  2. leetcode63. Unique Paths II
  3. Ubuntu软件安装命令
  4. IIS6.0应用程序池回收和工作进程
  5. LINUX 第五章 apache php mysql
  6. 每日算法练习之最大公约数最小公倍数
  7. Spark的RDD行动算子
  8. Spring的一些资源
  9. PhantomJS 基础及示例
  10. angularjs---服务(service / factory / provider)