From 6007829bbfae81af3dc81392c4fd9114dad365d5 Mon Sep 17 00:00:00 2001 From: Christopher Svensson Date: Tue, 28 Jul 2020 10:34:21 +0200 Subject: [PATCH] Corrected variable name --- frigate/video.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frigate/video.py b/frigate/video.py index dc116db76..292c5dbfc 100755 --- a/frigate/video.py +++ b/frigate/video.py @@ -190,7 +190,7 @@ def track_camera(name, config, global_objects_config, frame_queue, frame_shape, # load in the mask for object detection if 'mask' in config: mask = cv2.imread("/config/{}".format(config['mask']), cv2.IMREAD_GRAYSCALE) - if img.size == 0: + if mask.size == 0: print(f"Failed to read mask file") else: mask = None