问题1:pycharm运行程序时报错

AttributeError: module 'cv2.cv2' has no attribute 'cv2.MultiTracker_create()'

解决方案:

  1. 在cmd中输入下列代码,如果是anaconda配置的环境,就在anaconda的prompt中输入

  2. pip install opencv-contrib-python

 方法原地址:

https://blog.csdn.net/qq_42575647/article/details/99403199

 问题2:pycharm运行程序时报错

AttributeError: module 'cv2' has no attribute 'cv2.MultiTracker_create()'

解决方案:

通过cv2.legacy来调用此函数,比如

 'cv2.MultiTracker_create()'改成 'cv2.legacy.MultiTracker_create()'

 方法原地址:

https://blog.csdn.net/weixin_44279924/article/details/121783210

程序报错:AttributeError: module ‘cv2.cv2‘ has no attribute ‘cv2.MultiTracker_create()‘相关推荐

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

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

  2. python报错AttributeError module ‘scipy.misc‘ has no attribute ‘imresize‘和 ‘imread‘

    python报错AttributeError: module 'scipy.misc' has no attribute 'imresize'和 'imread' 报错原因:scipy版本过高 解决方 ...

  3. python 报错 AttributeError: module ‘time‘ has no attribute ‘clock 解决方法

    源码如下: #引入所需要的时间库 import datetime import time#程序计时器,启动计时器 start = time.clock()#中间是放置需要测试运行时间的程序代码#计算启 ...

  4. pyinstall :打包 .exe 文件报错AttributeError: module ‘enum‘ has no attribute ‘IntFlag‘

    有疑问的地方 参考博文 一.环境搭建 Python GUI图形化小工具编程学习-- PySide2 环境搭建(一) 二.实例演示 Python GUI图形化小工具编程学习-- Demo 实例演示(二) ...

  5. 第一:Python+Allure运行报错AttributeError: module ‘allure‘ has no attribute ‘severity_level‘

    1.很多查询结果都是先卸载pytest-allure-adaptor,然后再安装allure-pytest pip3 uninstall pytest-allure-adaptor 2.pip3 in ...

  6. python中引入包的时候报错AttributeError: module ‘sys‘ has no attribute ‘setdefaultencoding‘解决方法?

    python中引入包的时候报错AttributeError: module 'sys' has no attribute 'setdefaultencoding'解决方法? 参考文章: (1)pyth ...

  7. 学习python-mysql:报错AttributeError: module 'MySQLdb' has no attribute 'cursors'

    爬虫写入数据库时报错: AttributeError: module 'MySQLdb' has no attribute 'cursors' 解决方法: 引入 import MySQLdb.curs ...

  8. 运行pytorch时报错——AttributeError: module 'torch.nn' has no attribute 'ModuleDict'

    2020.2月的最后两个多小时,下次相遇2.29号就要等到四年后了-- 很神奇的一个月,学生生涯的最后一个假期,没想到竟是最长的一次...还是想祝福每位朋友,无论这段时间境况如何,都要稳稳地走下去,生 ...

  9. NVIDIA Jetson Xavier NX上导入tensorflow报错:AttributeError: module ‘wrapt‘ has no attribute ‘ObjectProxy‘

    欢迎大家关注笔者,你的关注是我持续更博的最大动力 原创文章,转载告知,盗版必究 在Jetson Xavier NX上导入tensorflow报错:AttributeError: module 'wra ...

  10. Pickle库使用练习报错 AttributeError: module 'pickle' has no attribute 'dump'

    在这里插入代码片在练习使用pickle模块的时候写了如下的代码,但是出现了报错,代码和报错内容如下: 代码: import pickle dict1 = dict(name='八岐大蛇', age=1 ...

最新文章

  1. 介绍如何用 Python 来绘制高清的交互式地图,建议收藏
  2. 用鸿蒙跑了个 “hello world”!鸿蒙开发初体验
  3. HashMap的put和get操作
  4. pycharm如何修改默认浏览器?修改成chrome
  5. 递归和分治思想及其应用
  6. Intent传递数据时,可以传递哪些类型数据
  7. cacti 安装部署
  8. 学习备忘英语单词转载
  9. IOS逆向(9)DebugServer + LLDB
  10. 【云存储】大容量网盘的介绍与选择
  11. Spring In Action 第四版:中文、英文、源码
  12. 架构师修炼系列【业务高可用】
  13. Spring boot集成RabbitMQ(山东数漫江湖)
  14. 【分布式技术专题】「OSS中间件系列」从0到1的介绍一下开源对象存储MinIO技术架构
  15. 2020第十七届华为杯数模C题——P300脑电信号数据预处理算法
  16. C3P0 连接问题 An attempt by a client to checkout a Connection has timed out.
  17. switch语句+java1.8_Java switch语句
  18. 单片机要学多久可以找到工作?能找到哪类的工作
  19. 6篇干货带你学会用vue开发小程序——mpvue
  20. win0php环境搭建,win10php环境搭建详细教程

热门文章

  1. CSUOJ-1986: 玄学
  2. iso镜像文件怎么装系统图文操作
  3. Qt 设置合适的字体大小
  4. netty传输html页面,java 文件传输(netty) 实例源码
  5. 写给我的如风老男人(终结版)
  6. ubuntu windows双系统默认启动项切换
  7. 青藤 #44 比例简化
  8. HTML首字下沉的编码,CSS_有关首行首字下沉的实现原理及代码,下面是两个个小技巧,一个是 - phpStudy...
  9. 东北大学软件项目管理与过程改进复习提纲(2020)——第一章
  10. vue+echarts GL3d中国地图