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
    
  • 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

扫描二维码关注公众号,回复: 16476106 查看本文章

注:最终使用 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的标注

猜你喜欢

转载自blog.csdn.net/liuxuan19901010/article/details/130555216
今日推荐