iou-tracker icon indicating copy to clipboard operation
iou-tracker copied to clipboard

Finish tracker just after a few frames

Open frunika opened this issue 5 years ago • 0 comments

I quite often loose some tracks because of missing detections in a single or two frames.

I added a "minimum age" criteria to the finishing track and save the tracks for one or two frames.

This will propably just work with high framerates of about 20fps and more.

adding a track['age'] = 0 right before the updated_tracks.append(track) in line 45 for matched tracks and changing line 52 if track['max_confidence'] >= sigma_h and (track['frames']) >= t_min: to

if track['age'] < 2:
  track['bboxes'].append(track['bboxes'][-1])
  track['age'] += 1
  updated_tracks.append(track)
  track['max_confidence'] >= sigma_h and (track['frames']) >= (t_min + track['age']):
...

will do it.

Somebody could prove that? Am I missing something?

frunika avatar Jun 24 '19 20:06 frunika