From ee5b9986added05e3b36c5bba91aaddd62479f03 Mon Sep 17 00:00:00 2001 From: Blake Blackshear Date: Fri, 11 Feb 2022 07:30:47 -0600 Subject: [PATCH] bump default stationary_threshold to 10s --- docs/docs/configuration/index.md | 4 ++-- frigate/config.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/docs/configuration/index.md b/docs/docs/configuration/index.md index bed2f113e..42c62cf41 100644 --- a/docs/docs/configuration/index.md +++ b/docs/docs/configuration/index.md @@ -162,8 +162,8 @@ detect: # Optional: Frequency for running detection on stationary objects (default: shown below) # When set to 0, object detection will never be run on stationary objects. If set to 10, it will be run on every 10th frame. stationary_interval: 0 - # Optional: Number of frames without a position change for an object to be considered stationary (default: 5x the frame rate) - stationary_threshold: 25 + # Optional: Number of frames without a position change for an object to be considered stationary (default: 10x the frame rate or 10s) + stationary_threshold: 50 # Optional: Object configuration # NOTE: Can be overridden at the camera level diff --git a/frigate/config.py b/frigate/config.py index a5f5275a2..3bfda8c55 100644 --- a/frigate/config.py +++ b/frigate/config.py @@ -771,7 +771,7 @@ class FrigateConfig(FrigateBaseModel): camera_config.detect.max_disappeared = max_disappeared # Default stationary_threshold configuration - stationary_threshold = camera_config.detect.fps * 5 + stationary_threshold = camera_config.detect.fps * 10 if camera_config.detect.stationary_threshold is None: camera_config.detect.stationary_threshold = stationary_threshold