使用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

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

    物联沃分享整理
    物联沃-IOTWORD物联网 » 使用Yolov8和DeepSORT进行多目标检测和人流、车流统计

    发表评论