Add loitering config

This commit is contained in:
Nicolas Mowen 2024-03-19 13:07:23 -06:00
parent 5c3925ab50
commit a767e768a0
2 changed files with 7 additions and 0 deletions

View File

@ -488,6 +488,8 @@ cameras:
coordinates: 545,1077,747,939,788,805
# Optional: Number of consecutive frames required for object to be considered present in the zone (default: shown below).
inertia: 3
# Optional: Number of seconds that an object must loiter to be considered in the zone (default: shown below)
loitering_time: 0
# Optional: List of objects that can trigger this zone (default: all tracked objects)
objects:
- person

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.",