You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Set past_detections_length to some low number, and add more detections than this. The detection age will not be set after being "added" when discarded.
Expected behavior
Even when discarded, the detection age should still be set after being added, because this affects the last_detection.
Seems like the above lines should always set the detection age. It should also probably assert that the age has not already been set / added to a tracker.
Screenshots or videos
N/A
Environment (please complete the following information):
OS: [e.g. Ubuntu 20.04]
Python version: [e.g. 3.9.10]
Norfair version: [e.g. 1.0.0]
Additional context
N/A
The text was updated successfully, but these errors were encountered:
Describe the bug
Age is not set on all newly added detections.
To Reproduce
Set
past_detections_length
to some low number, and add more detections than this. The detection age will not be set after being "added" when discarded.Expected behavior
Even when discarded, the detection age should still be set after being added, because this affects the
last_detection
.norfair/norfair/tracker.py
Lines 700 to 715 in 009a1b1
Seems like the above lines should always set the detection age. It should also probably assert that the age has not already been set / added to a tracker.
Screenshots or videos
N/A
Environment (please complete the following information):
Additional context
N/A
The text was updated successfully, but these errors were encountered: