Ability to configure loitering time in a zone (#10543)

* Add loitering config

* Configure loitering

* simplify

* Add docs

* grammar

* Formatting
This commit is contained in:
Nicolas Mowen
2024-03-19 14:58:04 -06:00
committed by GitHub
parent ab6bac1d2c
commit 8589ef50a6
4 changed files with 38 additions and 8 deletions

View File

@@ -515,6 +515,11 @@ class ZoneConfig(BaseModel):
title="Number of consecutive frames required for object to be considered present in the zone.",
gt=0,
)
loitering_time: int = Field(
default=0,
ge=0,
title="Number of seconds that an object must loiter to be considered in the zone.",
)
objects: List[str] = Field(
default_factory=list,
title="List of objects that can trigger the zone.",