源码地址:
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