复现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.

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

pip install easydict

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

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

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

问题解决方法参考教程:
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

  • 2
    点赞
  • 31
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

浪迹天涯@wxy

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值