|
@@ -178,7 +178,6 @@ class DetectConfig(FrigateBaseModel):
|
|
|
ge=0,
|
|
|
)
|
|
|
stationary_threshold: Optional[int] = Field(
|
|
|
- default=10,
|
|
|
title="Number of frames without a position change for an object to be considered stationary",
|
|
|
ge=1,
|
|
|
)
|
|
@@ -771,6 +770,11 @@ class FrigateConfig(FrigateBaseModel):
|
|
|
if camera_config.detect.max_disappeared is None:
|
|
|
camera_config.detect.max_disappeared = max_disappeared
|
|
|
|
|
|
+ # Default stationary_threshold configuration
|
|
|
+ stationary_threshold = camera_config.detect.fps * 5
|
|
|
+ if camera_config.detect.stationary_threshold is None:
|
|
|
+ camera_config.detect.stationary_threshold = stationary_threshold
|
|
|
+
|
|
|
# FFMPEG input substitution
|
|
|
for input in camera_config.ffmpeg.inputs:
|
|
|
input.path = input.path.format(**FRIGATE_ENV_VARS)
|