From 117177044781c9fe10a51e90463c09ac29cc9565 Mon Sep 17 00:00:00 2001 From: Jason Hunter Date: Wed, 9 Feb 2022 15:35:35 -0500 Subject: [PATCH] Only send significant update once when motionless count reaches the defined threshold. --- frigate/object_processing.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frigate/object_processing.py b/frigate/object_processing.py index 1ad6433a3..ec507ac7c 100644 --- a/frigate/object_processing.py +++ b/frigate/object_processing.py @@ -158,10 +158,10 @@ class TrackedObject: 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