mirror of
https://github.com/blakeblackshear/frigate.git
synced 2025-06-13 01:16:53 +02:00
signal an update when object becomes stationary
This commit is contained in:
parent
3e90f3032c
commit
63536d249f
@ -155,7 +155,14 @@ class TrackedObject:
|
|||||||
significant_change = True
|
significant_change = True
|
||||||
|
|
||||||
# if the position changed, signal an update
|
# 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
|
significant_change = True
|
||||||
|
|
||||||
self.obj_data.update(obj_data)
|
self.obj_data.update(obj_data)
|
||||||
|
Loading…
Reference in New Issue
Block a user