Skip to content

Commit

Permalink
Only send significant update once when motionless count reaches the d…
Browse files Browse the repository at this point in the history
…efined threshold.
  • Loading branch information
hunterjm authored and blakeblackshear committed Feb 10, 2022
1 parent 54d1a22 commit 1171770
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frigate/object_processing.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,10 +158,10 @@ def update(self, current_frame_time, obj_data):
if self.obj_data["position_changes"] != obj_data["position_changes"]:
significant_change = True

# if the motionless_count crosses the stationary threshold
# if the motionless_count reaches the stationary threshold
if (
self.obj_data["motionless_count"]
> self.camera_config.detect.stationary_threshold
== self.camera_config.detect.stationary_threshold
):
significant_change = True

Expand Down

0 comments on commit 1171770

Please sign in to comment.