Skip to content

Commit

Permalink
update an object once per minute
Browse files Browse the repository at this point in the history
  • Loading branch information
blakeblackshear committed Feb 19, 2022
1 parent 63536d2 commit 3189467
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions frigate/object_processing.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,10 @@ def update(self, current_frame_time, obj_data):
):
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)
Expand Down

0 comments on commit 3189467

Please sign in to comment.