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

ID keeps increesing for the same objects #109

Open petrpilar opened 3 years ago

petrpilar commented 3 years ago

ID of same objects keeps increesing across frames. I want to same object mantain same id. HELP PLS

For example car with ID 10 in 1. frame, has 41 in 2. frame.

0000001 0000002

I tried lot of combinations of theese parametrs nothing helped. tracker = Sort(max_age=5, min_hits=3, iou_threshold=0.3)

petrpilar commented 3 years ago

Problem solved I was inputing [x1,y1,x2,y2] not [x1,y1,x2,y2,score]as it should be

KevinUTAT commented 3 years ago

Problem solved I was inputing [x1,y1,x2,y2] not [x1,y1,x2,y2,score]as it should be

I have the same question and now I am confused. What exactly is the score? is it the confidence of detection?

Update: I got it working, it is the confidence.

aia39 commented 3 years ago

@pilarpe4 Hello. Why are you giving min_hits = 3? Still I haven't understood this.

I tried lot of combinations of theese parametrs nothing helped. tracker = Sort(max_age=5, min_hits=3, iou_threshold=0.3)

Momilijaz96 commented 2 years ago

@pilarpe4 Hello. Why are you giving min_hits = 3? Still I haven't understood this.

I tried lot of combinations of theese parametrs nothing helped. tracker = Sort(max_age=5, min_hits=3, iou_threshold=0.3)

Check out the main sections in sort.py. This param is actually the number of frames you want to keep a tracker id alive without associated detections