mirror of
https://github.com/blakeblackshear/frigate.git
synced 2024-11-21 19:07:46 +01:00
Fix zone filters
This commit is contained in:
parent
351ac4ec7d
commit
df2aae5169
@ -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'])
|
||||
|
||||
###
|
||||
|
Loading…
Reference in New Issue
Block a user