소스 검색

Fix zone filters

Ryan Press 4 년 전
부모
커밋
df2aae5169
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      frigate/object_processing.py

+ 1 - 1
frigate/object_processing.py

@@ -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'])
 
             ###