mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-06 11:15:21 +03:00
Increase initial hit count of tracked object
This commit is contained in:
parent
c743dfd657
commit
9d980668b0
@ -106,6 +106,9 @@ class NorfairTracker(ObjectTracker):
|
||||
"ymax": self.detect_config.height,
|
||||
}
|
||||
|
||||
# start object with a hit count of `fps` to avoid quick detection -> loss
|
||||
next((o for o in self.tracker.tracked_objects if o.global_id == track_id)).hit_counter = self.camera_config.detect.fps
|
||||
|
||||
def deregister(self, id, track_id):
|
||||
del self.tracked_objects[id]
|
||||
del self.disappeared[id]
|
||||
|
||||
Loading…
Reference in New Issue
Block a user