mirror of
https://github.com/blakeblackshear/frigate.git
synced 2024-11-21 19:07:46 +01:00
bump default stationary_threshold to 10s
This commit is contained in:
parent
190f217b13
commit
ee5b9986ad
@ -162,8 +162,8 @@ detect:
|
|||||||
# Optional: Frequency for running detection on stationary objects (default: shown below)
|
# 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.
|
# 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
|
stationary_interval: 0
|
||||||
# Optional: Number of frames without a position change for an object to be considered stationary (default: 5x the frame rate)
|
# Optional: Number of frames without a position change for an object to be considered stationary (default: 10x the frame rate or 10s)
|
||||||
stationary_threshold: 25
|
stationary_threshold: 50
|
||||||
|
|
||||||
# Optional: Object configuration
|
# Optional: Object configuration
|
||||||
# NOTE: Can be overridden at the camera level
|
# NOTE: Can be overridden at the camera level
|
||||||
|
@ -771,7 +771,7 @@ class FrigateConfig(FrigateBaseModel):
|
|||||||
camera_config.detect.max_disappeared = max_disappeared
|
camera_config.detect.max_disappeared = max_disappeared
|
||||||
|
|
||||||
# Default stationary_threshold configuration
|
# 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:
|
if camera_config.detect.stationary_threshold is None:
|
||||||
camera_config.detect.stationary_threshold = stationary_threshold
|
camera_config.detect.stationary_threshold = stationary_threshold
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user