Use norfair uninitialized score history for tracked object and update false positive docs (#8299)

* Update docs

* Use norfair score history to start object history

* Formatting
This commit is contained in:
Nicolas Mowen
2023-10-24 17:24:30 -06:00
committed by GitHub
parent e0e8a6fcc9
commit c141362614
3 changed files with 43 additions and 11 deletions

View File

@@ -97,6 +97,12 @@ class NorfairTracker(ObjectTracker):
obj["start_time"] = obj["frame_time"]
obj["motionless_count"] = 0
obj["position_changes"] = 0
obj["score_history"] = [
p.data["score"]
for p in next(
(o for o in self.tracker.tracked_objects if o.global_id == track_id)
).past_detections
]
self.tracked_objects[id] = obj
self.disappeared[id] = 0
self.positions[id] = {