当前位置:   article > 正文

yolov8 + deepsort 用于进行多目标检测(车流统计,人流统计)_yolov8+deepsort

yolov8+deepsort

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
    
    • 1
  • Goto the cloned folder.

    cd YOLOv8-DeepSORT-Object-Tracking

    Install the dependecies

pip install -e '.[dev]'
  • 1

这里要注意不是在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

运行后可以对每一个识别到的目标进行id的标注

本文内容由网友自发贡献,转载请注明出处:https://www.wpsshop.cn/w/小小林熬夜学编程/article/detail/647120
推荐阅读
相关标签
  

闽ICP备14008679号