Simplest possible example of tracking. Based on Detectron2.
Assuming Norfair is installed:
- Install Norfair with
pip install norfair[video]
. - Follow the instructions to install Detectron2.
- Run
python detectron2_cars.py
. For the demo, we are using this traffic footage.
This example tracks objects using a single point per detection: the centroid of the bounding boxes returned by Detectron2.