From e51240676455f28e767318d8571f8182edb14c60 Mon Sep 17 00:00:00 2001 From: Matti Hiljanen <170205+qvr@users.noreply.github.com> Date: Fri, 8 Dec 2023 15:30:22 +0200 Subject: [PATCH] Fix inertia calculation check (#8890) --- frigate/object_processing.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frigate/object_processing.py b/frigate/object_processing.py index b0e5b9a52..f7888441d 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: