use yuv420p pixel format for motion

This commit is contained in:
Blake Blackshear
2020-10-10 10:07:14 -05:00
parent 2c17f27ab4
commit 2a84d0afb9
5 changed files with 19 additions and 13 deletions

View File

@@ -93,7 +93,7 @@ class CameraState():
# get the new frame and delete the old frame
frame_id = f"{self.name}{frame_time}"
with self.current_frame_lock:
self._current_frame = self.frame_manager.get(frame_id, self.config['frame_shape'])
self._current_frame = self.frame_manager.get(frame_id, (self.config['frame_shape'][0]*3//2, self.config['frame_shape'][1]))
if not self.previous_frame_id is None:
self.frame_manager.delete(self.previous_frame_id)
self.previous_frame_id = frame_id