解决opencv错误AttributeError: module 'cv2.cv2' has no attribute 'xfeatures2d'

文章目录:

  • 一、错误原因
  • 二、解决方法

一、错误原因

这个错误是由于opencv-contrib-python版本太新导致出现的问题,应该降低版本

二、解决方法

  1. 卸载opencv-contrib-python
pip uninstall opencv-contrib-python
  1. 安装指定的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‘相关推荐

  1. 解决方法:AttributeError: module ‘torchtext.data‘ has no attribute ‘Field‘

    将 from torchtext.data import Field 改为 from torchtext.legacy.data import Field 同理,对于 from torchtext.d ...

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

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

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

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

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

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

  5. 成功解决Exception “unhandled AttributeError“ module ‘cv2.cv2‘ has no attribute ‘estimateRigidTransform‘

    成功解决Exception "unhandled AttributeError" module 'cv2.cv2' has no attribute 'estimateRigidT ...

  6. python安装dlib遇到的错误:AttributeError:module ‘dlib’ has no attribute ‘get_frontal_face_detector’问题解决

    dlib是一个非常好用的跨平台的通用库,但是在安装过程中遇到了许多问题,我在使用Anaconda安装dlib过程中,用pip install 安装,安装成功后,import没有问题 如下图,impor ...

  7. 导入torchvision出现:AttributeError: module ‘torch.jit‘ has no attribute ‘unused‘错误

    导入torchvision出现:AttributeError: module 'torch.jit' has no attribute 'unused'错误 文章目录: 1 问题原因 2 解决方法 我 ...

  8. 成功解决Exception “unhandled AttributeError“ module ‘h5py‘ has no attribute ‘File‘

    成功解决Exception "unhandled AttributeError" module 'h5py' has no attribute 'File' 解决问题 Except ...

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

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

最新文章

  1. 《用户至上:用户研究方法与实践(原书第2版)》一 3.4 法律层面的考虑
  2. HTTP错误 500.23-Internal Server Error 检测到在集成的托管管道模式下不适用的ASP.NET设置...
  3. 设置Eclipse中的Courier New字体
  4. Qt 互斥锁 QMutex 的简单应用
  5. windows环境下tensorflow安装过程详解(亲测安装成功后测试那块)
  6. as2 AVM1对象和as3对象的通信
  7. java return none,返回列表结果为none
  8. Python遍历字典的四种方法对比
  9. Hybrid App工作笔记0001---混合App开发过程中_Web是如何调用原生功能的_调用原理
  10. Autolayout屏幕适配——代码实现(苹果公司 / VFL语言 / 第三方框架Masonry)
  11. 第五十六题(最长公共子串)
  12. 安大计算机学院李炜教授,李炜-北京航空航天大学计算机学院
  13. PMP考试重点总结八——监控过程组(2)
  14. 谷歌翻译是如何获得突破性进展?
  15. 一起学爬虫(Python) — 02
  16. 【Git】error: RPC failed; curl 56 GnuTLS recv error (-9): A TLS packet with unexpected length was rece
  17. SQLyog Ultimate旗舰版软件安装使用
  18. STM32两轮自平衡小车(学习记录)——MPU6050
  19. [BZOJ]1064 [NOI2008] 假面舞会 dfs判环
  20. BUUCTF-web极客大挑战

热门文章

  1. Java常见排序算法
  2. HEOI2017游记
  3. 2017-03-02学习心得之Java代码
  4. MySQL执行计划解读
  5. wordpress 自定义删除后台管理菜单
  6. 你现在的CSS水平处于什么等级?
  7. python学习官网-Python学习(一)—— 初识python
  8. python画图-Python基础-画图:matplotlib
  9. python爬虫入门实例-Python爬虫快速入门:基本结构简单实例
  10. 简单python画圣诞树图片-python圣诞树编写实例详解