Formatting

This commit is contained in:
Nick Mowen 2023-09-23 07:33:40 -06:00
parent 9d980668b0
commit 764e6e0e55

View File

@ -107,7 +107,9 @@ class NorfairTracker(ObjectTracker):
} }
# start object with a hit count of `fps` to avoid quick detection -> loss # 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 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): def deregister(self, id, track_id):
del self.tracked_objects[id] del self.tracked_objects[id]