From b063099b2a32c523c000edc1f07e5d559694c8f0 Mon Sep 17 00:00:00 2001 From: Blake Blackshear Date: Sun, 11 Oct 2020 11:36:38 -0500 Subject: [PATCH] fix zone filters fixes #218 --- frigate/object_processing.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/frigate/object_processing.py b/frigate/object_processing.py index 3308e1c20..5cf3c8cad 100644 --- a/frigate/object_processing.py +++ b/frigate/object_processing.py @@ -28,10 +28,9 @@ for key, val in LABELS.items(): def zone_filtered(obj, object_config): object_name = obj['label'] - object_filters = object_config.get('filters', {}) - if object_name in object_filters: - obj_settings = object_filters[object_name] + if object_name in object_config: + obj_settings = object_config[object_name] # if the min area is larger than the # detected object, don't add it to detected objects