sort icon indicating copy to clipboard operation
sort copied to clipboard

ID keeps increesing for the same objects

Open petrpilar opened this issue 5 years ago • 4 comments

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 avatar Aug 01 '20 22:08 petrpilar

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

petrpilar avatar Aug 01 '20 23:08 petrpilar

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.

KevinUTAT avatar Aug 08 '20 17:08 KevinUTAT

@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)

aia39 avatar Aug 30 '20 07:08 aia39

@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

Momilijaz96 avatar Nov 17 '21 15:11 Momilijaz96