From 1c33b8acb280b267012604694166c2192f73d728 Mon Sep 17 00:00:00 2001 From: Blake Blackshear Date: Sat, 12 Sep 2020 22:56:19 -0500 Subject: [PATCH] handle mask files that failed to read --- frigate/video.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frigate/video.py b/frigate/video.py index bf2664f3e..f970086d3 100755 --- a/frigate/video.py +++ b/frigate/video.py @@ -207,7 +207,7 @@ def track_camera(name, config, frame_queue, frame_shape, detection_queue, detect else: 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[:] = 255