yolov8 + deepsort 用于进行多目标检测(车流统计,人流统计)
参考视频:https://www.youtube.com/watch?v=nkptX_vXJKo
git地址:https://github.com/MuhammadMoinFaisal/YOLOv8-DeepSORT-Object-Tracking
-
Clone the repository
git clone https://github.com/MuhammadMoinFaisal/YOLOv8-DeepSORT-Object-Tracking.git
-
Goto the cloned folder.
cd YOLOv8-DeepSORT-Object-Tracking
Install the dependecies
pip install -e '.[dev]'
这里要注意不是在yolo环境下执行,而是在普通命令行下执行,否则会报错
-
Run the code with mentioned command below.
-
For yolov8 object detection + Tracking
python predict.py model=yolov8l.pt source=“test3.mp4” show=True
- 报错:Error #15: Initializing libiomp5md.dll, but found libiomp5md.dll already initialized.
解决方案参考链接:https://blog.csdn.net/qq_37164776/article/details/126832303
注:最终使用 yolov8-deepsort 报错,未实际跑起来;
下载github上已实现的代码,进行车流统计
github链接:https://github.com/redeagle17/Car-Counting
我的实现方式,将Car-Countind/Car Counter Project/ 路径下的 carCounter.py sort.py复制到我已经配置好环境的ultralytics
我的ultralytics版本是 ultralytics-8.0.49文章来源:https://www.toymoban.com/news/detail-574630.html
运行后可以对每一个识别到的目标进行id的标注文章来源地址https://www.toymoban.com/news/detail-574630.html
到了这里,关于yolov8 + deepsort 用于进行多目标检测(车流统计,人流统计)的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!