mirror of
https://github.com/blakeblackshear/frigate.git
synced 2025-08-13 13:47:36 +02:00
Set mask = None when mask file was not loaded properly
This commit is contained in:
parent
440feac26e
commit
12214d11b4
@ -192,6 +192,7 @@ def track_camera(name, config, global_objects_config, frame_queue, frame_shape,
|
||||
mask = cv2.imread("/config/{}".format(config['mask']), cv2.IMREAD_GRAYSCALE)
|
||||
if mask.size == 0:
|
||||
print("Failed to read mask file")
|
||||
mask = None
|
||||
else:
|
||||
mask = None
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user