Fix zone filters

This commit is contained in:
Ryan Press 2020-08-19 09:14:42 -04:00 committed by Blake Blackshear
parent 351ac4ec7d
commit df2aae5169

View File

@ -156,7 +156,7 @@ class TrackedObjectProcessor(threading.Thread):
continue
# check if the object is in the zone and not filtered
if (cv2.pointPolygonTest(current_contour, bottom_center, False) >= 0
and not zone_filtered(obj, self.zone_config[name][camera].get('filters', {}))):
and not zone_filtered(obj, self.zone_config[name][camera])):
current_objects_in_zones[name].append(obj['label'])
###