From 63536d249ff0e02c9e7d99bb0705f20732b09676 Mon Sep 17 00:00:00 2001 From: Blake Blackshear Date: Tue, 8 Feb 2022 07:43:43 -0600 Subject: [PATCH] signal an update when object becomes stationary --- frigate/object_processing.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/frigate/object_processing.py b/frigate/object_processing.py index 6c45eed2a..42649e464 100644 --- a/frigate/object_processing.py +++ b/frigate/object_processing.py @@ -155,7 +155,14 @@ class TrackedObject: significant_change = True # if the position changed, signal an update - if not self.obj_data["position_changes"] != obj_data["position_changes"]: + if self.obj_data["position_changes"] != obj_data["position_changes"]: + significant_change = True + + # if the motionless_count crosses the stationary threshold + if ( + self.obj_data["motionless_count"] + > self.camera_config.detect.stationary_threshold + ): significant_change = True self.obj_data.update(obj_data)