nwojke / deep_sort

Simple Online Realtime Tracking with a Deep Association Metric
GNU General Public License v3.0
5.27k stars 1.47k forks source link

Tracking a fixed number of persons #101

Open tomhayat opened 6 years ago

tomhayat commented 6 years ago

Has someone tried to track a fixed known number of persons and has changed the code? I am working on another version where I had the constraint Number_of_tracks = N. I want to use the Kalman Filter and the feature extractor network to track well the persons on my video. Nevertheless, I don't see where I can add this constraint without rewriting the code from scratch.

Thanks !!

cppntn commented 5 years ago

I would love to hear some hints on this topic as well!!

nwojke commented 5 years ago

Hi tomhayat, that is an interesting, related problem. I don't think you will get around changing the track management logic to tackle it. Do you know at which point objects enter the scene? You can probably keep the frame-by-frame association code used in this repository, but the initialization and termination logic in tracker.py will change.