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

!saving results only after n number of frames! #209

Open tiberium24 opened 4 years ago

tiberium24 commented 4 years ago

Hello,

I have noticed that tracking results are saved after n number of frames and not from frame 1. Is there any way to change that?

lanshiyinging commented 4 years ago

It only save confirmed track, tentative track would not be save. Tentative track transfers to confirmed track only when the object is tracked in three consecutive frames. So I used a list to store ids, saved all the confirmed and tentative tracks, and then use the below condition track.is_deleted() and track.hits < 3 to see if a tentative track successfully transfer to confirmed track. If failed, remove the id from the ids list.