Browse Source

update an object once per minute

Blake Blackshear 3 năm trước cách đây
mục cha
commit
3189467a36
1 tập tin đã thay đổi với 4 bổ sung0 xóa
  1. 4 0
      frigate/object_processing.py

+ 4 - 0
frigate/object_processing.py

@@ -165,6 +165,10 @@ class TrackedObject:
             ):
                 significant_change = True
 
+            # update at least once per minute
+            if self.obj_data["frame_time"] - self.previous["frame_time"] > 60:
+                significant_change = True
+
         self.obj_data.update(obj_data)
         self.current_zones = current_zones
         return (thumb_update, significant_change)