소스 검색

fix zone filters fixes #218

Blake Blackshear 4 년 전
부모
커밋
b063099b2a
1개의 변경된 파일2개의 추가작업 그리고 3개의 파일을 삭제
  1. 2 3
      frigate/object_processing.py

+ 2 - 3
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