samihormi / Multi-Camera-Person-Tracking-and-Re-Identification

Simple model to Track and Re-identify individuals in different cameras/videos.(Yolov3 & Yolov4)
GNU General Public License v3.0
203 stars 68 forks source link
identification joint-detection-and-tracking multi-object-tracking object-detection pedestrian person-reid reid tracking yolo yolov3 yolov4

Multi-Camera Person Tracking and Re-Identification (using video)

HitCount Simple model to "Detect/Track" and "Re-identify" individuals in different cameras/videos.

Introduction

This project aims to track people in different videos accounting for different angles.

The framework used to accomplish this task relies on MOT and ReID to track and re-identify ID's of humans, respectively. The tracking can be completed using YOLO_v3 or YOLO_v4 and ReID relies on KaiyangZhou's Torchreid library.

Installation

Pre-trained models (.h5) (If you want to start right away)

Demo

You can try out your own videos by running demo.py. Under the directory \videos\output, the program will generate a video of the tracking, as well as a video of the tracking and ReID. (as can be seen in the example above) You should specify the path of the videos and the version of YOLO you would like to use (v3 or v4)

python demo.py --videos videos\init\Double1.mp4 videos\init\Single1.mp4 --version v3

Acknowledgement

This model is build on top of the incredible work done in the following projects: