Using Yolov5, DeepSort and Supervision to track the number of sacks loaded onto and off of a truck.
After cloning the repo:
- Install requirements
pip install -r requirements.txt
- Open Jupyter notebook
- Open
Tracking and Counting Sacks.ipynb
notebook- Change model
path
to your Yolov5 model. - Change
SOURCE_VIDEO_PATH
to your video path. - Change
LINE_START
andLINE_END
to position your counting line.
- Change model
- Run the notebook.
https://github.com/ultralytics/yolov5