objects moving between zones #20998
-
|
I know this is an old question sorry for rehashing it. I read a post from back in 2004 that said the entering zones is a chronological array of the zones the object passed through. And that the logic should be to look for the desired source zone in the before entered zones and then look for the next zone in the after entering zone. before and after entering zones are both arrays and at least in some cases identical arrays? I think I am probably seeing posts related to an older version of frigate. Can you please re-explain how to track objects from one zone to the next. My use case it the typical street - > driveway ( arrival ) test. I do not care about departures ( driveway -> street ) at this time. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
You're correct that zone tracking has evolved. Here's how to track objects moving between zones in current versions of Frigate: Zone Presence BasicsZones evaluate object presence based on the bottom center of the bounding box(1). An object is considered present in a zone when this point falls within the zone coordinates(1). Tracking Movement Between ZonesFor your street → driveway arrival scenario, the recommended approach uses MQTT events to check zone transitions(2)(3): Check these conditions:
This logic detects when an object first enters the driveway zone, regardless of which zone it came from(2)(3). Understanding Zone FieldsThe MQTT event payload includes(4):
Important note: With stationary object detection, Avoiding Multiple TriggersTo prevent repeated notifications while the object remains in the zone, check that Zone InertiaBy default, an object must be present in a zone for 3 consecutive frames before being considered in that zone(1)(5). You can adjust this with the For your arrival detection, focus on monitoring 📚 Sources:
Have another question? Just tag @inkeep. |
Beta Was this translation helpful? Give feedback.
You're correct that zone tracking has evolved. Here's how to track objects moving between zones in current versions of Frigate:
Zone Presence Basics
Zones evaluate object presence based on the bottom center of the bounding box(1). An object is considered present in a zone when this point falls within the zone coordinates(1).
Tracking Movement Between Zones
For your street → driveway arrival scenario, the recommended approach uses MQTT events to check zone transitions(2)(3):
Check these conditions:
before.entered_zonesshould NOT contain "driveway"after.current_zonesshould contain "driveway"(2)This logic detects when an object first enters the driveway zone, regardless of which zone i…