make stationary_threshold configurable

This commit is contained in:
Blake Blackshear
2022-02-08 07:40:45 -06:00
parent 5cff849e59
commit 3e90f3032c
4 changed files with 13 additions and 6 deletions

View File

@@ -177,6 +177,11 @@ class DetectConfig(FrigateBaseModel):
title="Frame interval for checking stationary objects.",
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,
)
class FilterConfig(FrigateBaseModel):