AttributeError: module ‘cv2.cv2‘ has no attribute ‘xfeatures2d‘解决方法
运行一段关于图像拼接的代码时,出现问题 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‘解决方法相关推荐
- 【Flask】flask-bootstrap报错AttributeError: module ‘dominate.tags‘ has no attribute ‘input‘解决方法
问题 在使用flask-bootstrap渲染表单时,报错AttributeError: module 'dominate.tags' has no attribute 'input'. 解决方法 修 ...
- AttributeError: module ‘torchtext.data‘ has no attribute ‘Field‘ 解决
AttributeError: module 'torchtext.data' has no attribute 'Field' 前言 伴随着 3月5日TorchText 0.9.0更新,一些API调 ...
- AttributeError: module ‘scipy.signal‘ has no attribute ‘correlation_lags‘
一般这种问题,都是版本号不匹配的问题,通过 pip 更新安装包即可 我原来scipy的版本号是 1.5.2,执行代码 lags = signal.correlation_lags(len(u), le ...
- AttributeError: module ‘torch.distributed‘ has no attribute ‘_all_gather_base‘
问题描述 安装完apex后,调用的是时候出现如下错误: File "/home/shuyuan/anaconda3/envs/shuyuan/lib/python3.8/site-packa ...
- 成功解决AttributeError: module ‘tornado.web‘ has no attribute ‘asynchronous‘
成功解决AttributeError: module 'tornado.web' has no attribute 'asynchronous' 目录 解决问题 解决思路 解决方法 解决问题 Attr ...
- 成功解决AttributeError: module tensorflow.sets has no attribute intersection
成功解决AttributeError: module tensorflow.sets has no attribute intersection 目录 解决问题 解决思路 解决方法 T1.更新 t ...
- 成功解决AttributeError: module tensorflow.image has no attribute resize
成功解决AttributeError: module tensorflow.image has no attribute resize 目录 解决问题 解决思路 解决方法 解决问题 Attribute ...
- 成功解决AttributeError: module 'torch.utils' has no attribute 'data'
成功解决AttributeError: module 'torch.utils' has no attribute 'data' 目录 解决问题 解决思路 解决方法 解决问题 AttributeErr ...
- 报错与解决 | AttributeError: module ‘librosa.feature‘ has no attribute ‘rmse‘
rmse → rms 代码:rmse = librosa.feature.rmse(y=y) 报错:AttributeError: module 'librosa.feature' has no at ...
最新文章
- 深度学习七个实用技巧
- document对象详解
- 用perl 实现 svn 差异备份
- Activiti工作流引擎使用详解(一)
- 应用指定显示到副屏_广电演播领域与舞台LED租赁显示屏如何去选择LED小间距屏...
- Android View体系(五)从源码解析View的事件分发机制
- php输出源文件,apt-get 按照php7后apache 输出php源文件
- 毕业设计(五)---spring学习笔记(3)之-dataSource,sessionFactory,hibernateTemplate,事务 的简单配置。...
- scala代码示例_Scala数组示例
- vue 封装dialog_GitHub - 1014156094/vue-mobile-dialog: Vue移动端基础组件 - 对话框
- CSDN图片去除水印
- 四月一个晴朗的早晨,遇见一个百分之百的女孩
- TMR磁传感器技术注释 | 自旋电子学(磁电子学)
- 基于python的scip库使用,从基础模型到复杂模型,从一维变量到三维变量
- 公链,多少资金盘假汝之名以行?
- 普拉图和施泰纳问题的实验解法
- 小字辈(左子右兄加强版)
- 服务器命令mv 文件夹,【cmd】cmd常用命令
- 论文阅读 End-to-End Multi-View Fusion for 3D Object Detection in Lidar Point Clouds
- Nodemcu 驱动WS2812点灯红色变绿色的原因及解决