Skip to content

NVR with realtime local object detection for IP cameras

Fix inertia calculation check (#8890)

Matti Hiljanene51240676455
diff --git a/frigate/object_processing.py b/frigate/object_processing.py
index b0e5b9a522..f7888441de 100644
--- a/frigate/object_processing.py
+++ b/frigate/object_processing.py
@@ -195,7 +195,7 @@ class TrackedObject:
self.zone_presence[name] = zone_score + 1
# an object is only considered present in a zone if it has a zone inertia of 3+
- if zone_score >= zone.inertia:
+ if self.zone_presence[name] >= zone.inertia:
current_zones.append(name)
if name not in self.entered_zones: