mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-09 04:35:25 +03:00
Add loitering config
This commit is contained in:
parent
5c3925ab50
commit
a767e768a0
@ -488,6 +488,8 @@ cameras:
|
|||||||
coordinates: 545,1077,747,939,788,805
|
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).
|
# Optional: Number of consecutive frames required for object to be considered present in the zone (default: shown below).
|
||||||
inertia: 3
|
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)
|
# Optional: List of objects that can trigger this zone (default: all tracked objects)
|
||||||
objects:
|
objects:
|
||||||
- person
|
- person
|
||||||
|
|||||||
@ -515,6 +515,11 @@ class ZoneConfig(BaseModel):
|
|||||||
title="Number of consecutive frames required for object to be considered present in the zone.",
|
title="Number of consecutive frames required for object to be considered present in the zone.",
|
||||||
gt=0,
|
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(
|
objects: List[str] = Field(
|
||||||
default_factory=list,
|
default_factory=list,
|
||||||
title="List of objects that can trigger the zone.",
|
title="List of objects that can trigger the zone.",
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user