increment motionless_count

This commit is contained in:
Blake Blackshear 2022-02-06 14:50:15 -06:00
parent 583912db9c
commit d78dc2388c

View File

@ -106,6 +106,7 @@ class ObjectTracker:
def update_frame_times(self, frame_time): def update_frame_times(self, frame_time):
for id in self.tracked_objects.keys(): for id in self.tracked_objects.keys():
self.tracked_objects[id]["frame_time"] = frame_time self.tracked_objects[id]["frame_time"] = frame_time
self.tracked_objects[id]["motionless_count"] += 1
def match_and_update(self, frame_time, new_objects): def match_and_update(self, frame_time, new_objects):
# group by name # group by name