mirror of
https://github.com/blakeblackshear/frigate.git
synced 2024-11-26 19:06:11 +01:00
handle mask files that failed to read
This commit is contained in:
parent
5e77436d39
commit
1c33b8acb2
@ -207,7 +207,7 @@ def track_camera(name, config, frame_queue, frame_shape, detection_queue, detect
|
|||||||
else:
|
else:
|
||||||
mask = None
|
mask = None
|
||||||
|
|
||||||
if mask is None:
|
if mask is None or mask.size == 0:
|
||||||
mask = np.zeros((frame_shape[0], frame_shape[1]), np.uint8)
|
mask = np.zeros((frame_shape[0], frame_shape[1]), np.uint8)
|
||||||
mask[:] = 255
|
mask[:] = 255
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user