abewley / sort

Simple, online, and realtime tracking of multiple objects in a video sequence.
GNU General Public License v3.0
3.82k stars 1.07k forks source link

missing intermediate IDs #156

Closed andreaceruti closed 1 year ago

andreaceruti commented 2 years ago

For my tracking problem I feed detections in every frame and I use an instance of Sort class with parameters max_age=5,min_hits=3, iou_threshold=0.3. The problem is that there are gaps between the IDs of the tracked objects, for example in the picture below how it is possible that from 5 id we arrive at 8? we should have also 6 and 7 ids rgb1963_mot In the intermediate frames this problem gets worse since the ids are getting higher and the gap bigger, as you can see below rgb2414_mot

Any suggestions on how to have more consecutive IDs?

zain18jan2000 commented 1 year ago

@andreaceruti I am face the same issue. Did you find the solution ?

andreaceruti commented 1 year ago

@zain18jan2000 This is something you can't fix in SORT. Just re-map the indexes offline. Otherwise you should go into the source code and change them online but I haven't done it and so I can't help on this