Formatting

This commit is contained in:
Nick Mowen 2023-06-20 06:34:18 -06:00
parent bb960243af
commit 5ade0cda2c

View File

@ -189,9 +189,7 @@ class TrackedObject:
# check if the object is in the zone # check if the object is in the zone
if cv2.pointPolygonTest(contour, bottom_center, False) >= 0: if cv2.pointPolygonTest(contour, bottom_center, False) >= 0:
# if the object passed the filters once, dont apply again # if the object passed the filters once, dont apply again
if name in self.current_zones or not zone_filtered( if name in self.current_zones or not zone_filtered(self, zone.filters):
self, zone.filters
):
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+