Simplest possible example of tracking. Based on pytorch YOLOv4.
- Install Norfair with
pip install norfair[video]
. - Clone pytorch YOLOv4 and download the weights published on the repo into your local clone of the repo.
- Copy
yolov4demo.py
into your local clone of the repo and runpython yolov4demo.py <video file>
.
This example tracks objects using a single point per detection: the centroid of the bounding boxes around cars returned by YOLOv4.