mirror of
https://github.com/blakeblackshear/frigate.git
synced 2025-08-13 13:47:36 +02:00
Corrected variable name
This commit is contained in:
parent
9e0601c090
commit
6007829bbf
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user