From 8b458d1d1eaab092ea0d148b817bff47b6d72e19 Mon Sep 17 00:00:00 2001 From: Nicolas Mowen Date: Sun, 11 Jun 2023 06:51:21 -0600 Subject: [PATCH] Clarify zone presence behavior Co-authored-by: Blake Blackshear --- docs/docs/configuration/index.md | 2 +- frigate/config.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/docs/configuration/index.md b/docs/docs/configuration/index.md index c2ee60c1d..37b4d0512 100644 --- a/docs/docs/configuration/index.md +++ b/docs/docs/configuration/index.md @@ -467,7 +467,7 @@ cameras: # Required: List of x,y coordinates to define the polygon of the zone. # NOTE: Presence in a zone is evaluated only based on the bottom center of the objects bounding box. coordinates: 545,1077,747,939,788,805 - # Optional: Set the inertia required for an object to be considered present in the zone. Allowed values are 0 < inertia < 10 (default: shown below) + # Optional: Number of consecutive frames required for object to be considered present in the zone. Allowed values are 1-10 (default: shown below) inertia: 3 # Optional: List of objects that can trigger this zone (default: all tracked objects) objects: diff --git a/frigate/config.py b/frigate/config.py index 3f1493ccd..1ad4a45f3 100644 --- a/frigate/config.py +++ b/frigate/config.py @@ -328,7 +328,7 @@ class ZoneConfig(BaseModel): ) inertia: int = Field( default=3, - title="Number of 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, le=10, )