tryolabs / norfair

Lightweight Python library for adding real-time multi-object tracking to any detector.
https://tryolabs.github.io/norfair/
BSD 3-Clause "New" or "Revised" License
2.41k stars 247 forks source link

Detection age not updated after merging tracked objects #318

Open nmichlo opened 7 months ago

nmichlo commented 7 months ago

Describe the bug

With re-id enabled, detection age is not updated when objects are merged. It makes sense that detection ages should always be sequential in nature, but after merging tracked objects, the detection age can be arbitrary / is left over from the previous tracked object.

NOTE: the order of detections in the past detections list is also not correctly maintained / merged. It seems like past detections should be kept in-order.

To Reproduce N/A

Expected behavior

The detection ages should be updated to be relative to the start age of the tracked object that the detections are merged into. I.e. the detection ages should follow on sequentially.

Screenshots or videos N/A

Environment (please complete the following information):

Additional context N/A