码农知识堂 - 1000bd
  •   Python
  •   PHP
  •   JS/TS
  •   JAVA
  •   C/C++
  •   C#
  •   GO
  •   Kotlin
  •   Swift
  • 复现yolov5+Deepsort实现车辆行人的检测、追踪和计数


    源码地址:
    https://github.com/dyh/unbox_yolov5_deepsort_counting
    https://github.com/Sharpiless/Yolov5-deepsort-inference
    https://github.com/Sharpiless/Yolov5-Deepsort
    传送门:链接:https://pan.baidu.com/s/1VZwpjF5wn0ZyvlrIwHCCwQ?pwd=6txz
    提取码:6txz --来自百度网盘超级会员V4的分享
    源码复现过程遇到的问题:
    问题1:

    qt.qpa.plugin: Could not load the Qt platform plugin “xcb“问QObject::moveToThread: Current thread (0x557d2ffe4400) is not the object's thread (0x557d30751de0).
    Cannot move to target thread (0x557d2ffe4400)
    
    qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "/home/cv/anaconda3/envs/darknet/lib/python3.6/site-packages/cv2/qt/plugins" even though it was found.
    This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
    
    Available platform plugins are: xcb, eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, webgl.
    
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
    • 7

    大致意思就是不能显示相应的窗口
    解决方法:
    将demo.py中以下几行注释掉就行
    在这里插入图片描述
    在运行demo.py前需要配置环境,安装requirements.txt,安装完可能还需要安装一些包:
    问题2:ModuleNotFoundError: No module named ‘easydict‘解决办法:

    pip install easydict
    
    • 1

    问题3:TypeError: load() missing 1 required positional argument: ‘Loader‘解决方案:
    在这里插入图片描述
    直接点击第一行的代码中的parser进入出错行的代码

    将self.update(yaml.load(fo.read()))修改为下面中的其中一行:

    self.update(yaml.safe_load(fo.read()))
    
    • 1
    self.update(yaml.load(fo.read(), Loader=yaml.FullLoader))
    
    • 1
    self.update(yaml.load(fo.read(), Loader=yaml.CLoader))
    
    • 1

    问题解决方法参考教程:
    https://zhuanlan.zhihu.com/p/354648251
    https://blog.csdn.net/qq_41793322/article/details/100083872
    https://blog.csdn.net/m0_64346597/article/details/126027559
    https://blog.csdn.net/threestooegs/article/details/124424434

  • 相关阅读:
    百度智能云千帆Appbuilder全面升级!可玩性更强!速来体验!
    《Python+Kivy(App开发)从入门到实践》自学笔记:简单UX部件——Video视频
    ssm+vue+elementUI基于微信小程序的电动电动汽车车智能充电桩服务平台-计算机毕业设计
    网络赚钱项目 - 虚拟项目如何选择产品
    函数式接口 BiConsumer接口和Consumer接口
    计算机视觉40例之案例14指纹识别
    【partio】继续探索粒子格式库partio
    plantUML使用指南
    Java8使用stream分组和排序的实现
    Llama2-Chinese项目:2.1-Atom-7B预训练
  • 原文地址:https://blog.csdn.net/wxy2020915/article/details/127861879
  • 最新文章
  • 攻防演习之三天拿下官网站群
    数据安全治理学习——前期安全规划和安全管理体系建设
    企业安全 | 企业内一次钓鱼演练准备过程
    内网渗透测试 | Kerberos协议及其部分攻击手法
    0day的产生 | 不懂代码的"代码审计"
    安装scrcpy-client模块av模块异常,环境问题解决方案
    leetcode hot100【LeetCode 279. 完全平方数】java实现
    OpenWrt下安装Mosquitto
    AnatoMask论文汇总
    【AI日记】24.11.01 LangChain、openai api和github copilot
  • 热门文章
  • 十款代码表白小特效 一个比一个浪漫 赶紧收藏起来吧!!!
    奉劝各位学弟学妹们,该打造你的技术影响力了!
    五年了,我在 CSDN 的两个一百万。
    Java俄罗斯方块,老程序员花了一个周末,连接中学年代!
    面试官都震惊,你这网络基础可以啊!
    你真的会用百度吗?我不信 — 那些不为人知的搜索引擎语法
    心情不好的时候,用 Python 画棵樱花树送给自己吧
    通宵一晚做出来的一款类似CS的第一人称射击游戏Demo!原来做游戏也不是很难,连憨憨学妹都学会了!
    13 万字 C 语言从入门到精通保姆级教程2021 年版
    10行代码集2000张美女图,Python爬虫120例,再上征途
Copyright © 2022 侵权请联系2656653265@qq.com    京ICP备2022015340号-1
正则表达式工具 cron表达式工具 密码生成工具

京公网安备 11010502049817号