Fix motion breaking frames

This commit is contained in:
Nick Mowen 2022-04-18 10:39:15 -06:00
parent 5c0207d3b9
commit da5b217403

View File

@ -511,13 +511,11 @@ def process_frames(
f"{camera_name}{frame_time}", (frame_shape[0] * 3 // 2, frame_shape[1])
)
if not motion_enabled.value:
continue
if frame is None:
logger.info(f"{camera_name}: frame {frame_time} is not in memory store.")
continue
if motion_enabled.value:
# look for motion
motion_boxes = motion_detector.detect(frame)