소스 검색

initialize detection correctly from config

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

+ 1 - 1
frigate/app.py

@@ -74,7 +74,7 @@ class FrigateApp():
                 'camera_fps': mp.Value('d', 0.0),
                 'skipped_fps': mp.Value('d', 0.0),
                 'process_fps': mp.Value('d', 0.0),
-                'detection_enabled': mp.Value('i', 1),
+                'detection_enabled': mp.Value('i', self.config.cameras[camera_name].detect.enabled),
                 'detection_fps': mp.Value('d', 0.0),
                 'detection_frame': mp.Value('d', 0.0),
                 'read_start': mp.Value('d', 0.0),