From 75977128f0040e220bd2c19fb8920a38235e9852 Mon Sep 17 00:00:00 2001 From: Blake Blackshear Date: Sun, 25 Oct 2020 10:05:48 -0500 Subject: [PATCH] ensure dummy frame is in yuv shape --- frigate/object_processing.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frigate/object_processing.py b/frigate/object_processing.py index 17cad0269..669ef1418 100644 --- a/frigate/object_processing.py +++ b/frigate/object_processing.py @@ -58,7 +58,7 @@ class CameraState(): self.object_status = defaultdict(lambda: 'OFF') self.tracked_objects = {} self.zone_objects = defaultdict(lambda: []) - self._current_frame = np.zeros(self.config['frame_shape'], np.uint8) + self._current_frame = np.zeros((self.config['frame_shape'][0]*3//2, self.config['frame_shape'][1]), np.uint8) self.current_frame_lock = threading.Lock() self.current_frame_time = 0.0 self.previous_frame_id = None