解决opencv错误AttributeError: module ‘cv2.cv2‘ has no attribute ‘xfeatures2d‘
解决opencv错误AttributeError: module 'cv2.cv2' has no attribute 'xfeatures2d'
文章目录:
- 一、错误原因
- 二、解决方法
一、错误原因
这个错误是由于opencv-contrib-python
版本太新导致出现的问题,应该降低版本
二、解决方法
- 卸载
opencv-contrib-python
pip uninstall opencv-contrib-python
- 安装指定的
opencv-contrib-python
版本
pip install opencv-contrib-python==3.3.0.10
Reference:
https://github.com/csm-kr/dog_classifier_for_identification/issues/1
♠ ⊕ ♠ ⊕ ♠ ⊕ ♠ ⊕ ♠ ⊕ ♠ ⊕ ♠ ⊕ ♠ ⊕ ♠ ⊕ ♠ ⊕ ♠ ⊕ ♠ ⊕ ♠ ⊕ ♠ ⊕ ♠ ⊕ ♠ ⊕ ♠ ⊕ ♠ ⊕ ♠ ⊕ ♠ ⊕ ♠ ⊕ ♠ ⊕ ♠ ⊕ ♠ ⊕ ♠ ⊕ ♠ ⊕ ♠ ⊕ ♠ ⊕ ♠ ⊕ ♠ ⊕ ♠
解决opencv错误AttributeError: module ‘cv2.cv2‘ has no attribute ‘xfeatures2d‘相关推荐
- 解决方法:AttributeError: module ‘torchtext.data‘ has no attribute ‘Field‘
将 from torchtext.data import Field 改为 from torchtext.legacy.data import Field 同理,对于 from torchtext.d ...
- 成功解决AttributeError: module ‘tornado.web‘ has no attribute ‘asynchronous‘
成功解决AttributeError: module 'tornado.web' has no attribute 'asynchronous' 目录 解决问题 解决思路 解决方法 解决问题 Attr ...
- 成功解决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 ...
- 成功解决Exception “unhandled AttributeError“ module ‘cv2.cv2‘ has no attribute ‘estimateRigidTransform‘
成功解决Exception "unhandled AttributeError" module 'cv2.cv2' has no attribute 'estimateRigidT ...
- python安装dlib遇到的错误:AttributeError:module ‘dlib’ has no attribute ‘get_frontal_face_detector’问题解决
dlib是一个非常好用的跨平台的通用库,但是在安装过程中遇到了许多问题,我在使用Anaconda安装dlib过程中,用pip install 安装,安装成功后,import没有问题 如下图,impor ...
- 导入torchvision出现:AttributeError: module ‘torch.jit‘ has no attribute ‘unused‘错误
导入torchvision出现:AttributeError: module 'torch.jit' has no attribute 'unused'错误 文章目录: 1 问题原因 2 解决方法 我 ...
- 成功解决Exception “unhandled AttributeError“ module ‘h5py‘ has no attribute ‘File‘
成功解决Exception "unhandled AttributeError" module 'h5py' has no attribute 'File' 解决问题 Except ...
- 成功解决AttributeError: module tensorflow.sets has no attribute intersection
成功解决AttributeError: module tensorflow.sets has no attribute intersection 目录 解决问题 解决思路 解决方法 T1.更新 t ...
最新文章
- 《用户至上:用户研究方法与实践(原书第2版)》一 3.4 法律层面的考虑
- HTTP错误 500.23-Internal Server Error 检测到在集成的托管管道模式下不适用的ASP.NET设置...
- 设置Eclipse中的Courier New字体
- Qt 互斥锁 QMutex 的简单应用
- windows环境下tensorflow安装过程详解(亲测安装成功后测试那块)
- as2 AVM1对象和as3对象的通信
- java return none,返回列表结果为none
- Python遍历字典的四种方法对比
- Hybrid App工作笔记0001---混合App开发过程中_Web是如何调用原生功能的_调用原理
- Autolayout屏幕适配——代码实现(苹果公司 / VFL语言 / 第三方框架Masonry)
- 第五十六题(最长公共子串)
- 安大计算机学院李炜教授,李炜-北京航空航天大学计算机学院
- PMP考试重点总结八——监控过程组(2)
- 谷歌翻译是如何获得突破性进展?
- 一起学爬虫(Python) — 02
- 【Git】error: RPC failed; curl 56 GnuTLS recv error (-9): A TLS packet with unexpected length was rece
- SQLyog Ultimate旗舰版软件安装使用
- STM32两轮自平衡小车(学习记录)——MPU6050
- [BZOJ]1064 [NOI2008] 假面舞会 dfs判环
- BUUCTF-web极客大挑战