mirror of
https://github.com/blakeblackshear/frigate.git
synced 2024-11-21 19:07:46 +01:00
Fix inertia calculation check (#8890)
This commit is contained in:
parent
a4f5ad3a94
commit
e512406764
@ -195,7 +195,7 @@ class TrackedObject:
|
|||||||
self.zone_presence[name] = zone_score + 1
|
self.zone_presence[name] = zone_score + 1
|
||||||
|
|
||||||
# an object is only considered present in a zone if it has a zone inertia of 3+
|
# 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)
|
current_zones.append(name)
|
||||||
|
|
||||||
if name not in self.entered_zones:
|
if name not in self.entered_zones:
|
||||||
|
Loading…
Reference in New Issue
Block a user