dyh/unbox_yolov5_deepsort_counting
dyh/unbox_yolov5_deepsort_counting has 1,089 GitHub stars and 250 forks. GitHot measured 0 stars in 24 hours and -1 in 7 days. Last checked 2026-11-13 05:34 UTC. Last push 2021-05-27.
Measured star growth
- in 24h
- 0
- in 7 days
- -1
- in 15 days
- Collecting history
- in 1 month
- Collecting history
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
About
yolov5 deepsort 行人 车辆 跟踪 检测 计数
Developer ToolsREADME.md
Originalyolov5 deepsort 行人 车辆 跟踪 检测 计数
- 实现了 出/入 分别计数。
- 显示检测类别。
- 默认是 南/北 方向检测,若要检测不同位置和方向,可在 main.py 文件第13行和21行,修改2个polygon的点。
- 默认检测类别:行人、自行车、小汽车、摩托车、公交车、卡车。
- 检测类别可在 detector.py 文件第60行修改。
视频
bilibili
运行环境
- python 3.6+,pip 20+
- pytorch
- pip install -r requirements.txt
如何运行
下载代码
$ git clone https://github.com/dyh/unbox_yolov5_deepsort_counting.git因此repo包含weights及mp4等文件,若 git clone 速度慢,可直接下载zip文件:https://github.com/dyh/unbox_yolov5_deepsort_counting/archive/main.zip
进入目录
$ cd unbox_yolov5_deepsort_counting创建 python 虚拟环境
$ python3 -m venv venv激活虚拟环境
$ source venv/bin/activate升级pip
$ python -m pip install --upgrade pip安装pytorch
根据你的操作系统、安装工具以及CUDA版本,在 https://pytorch.org/get-started/locally/ 找到对应的安装命令。我的环境是 ubuntu 18.04.5、pip、CUDA 11.0。
$ pip install torch==1.7.1+cu110 torchvision==0.8.2+cu110 torchaudio===0.7.2 -f https://download.pytorch.org/whl/torch_stable.html安装软件包
$ pip install -r requirements.txt在 main.py 文件中第66行,设置要检测的视频文件路径,默认为 './video/test.mp4'
140MB的测试视频可以在这里下载:https://pan.baidu.com/s/1qHNGGpX1QD6zHyNTqWvg1w 提取码: 8ufq
capture = cv2.VideoCapture('./video/test.mp4')运行程序
python main.py
使用框架
Explore related projects
codecrafters-io/build-your-own-x
Master programming by recreating your favorite technologies from scratch.
562,271 starspublic-apis/public-apis
A collective list of free APIs
498,675 starsmorluto/rea
Reverse engineer anything with agents, from app behavior down to native binaries.
456,760 starsopenclaw/openclaw
The AI that really does things. Any OS. Any Platform. The lobster way. 🦞
394,438 stars