From da5b2174033bf3683e5deeedfe184a8c7df71f76 Mon Sep 17 00:00:00 2001 From: Nick Mowen Date: Mon, 18 Apr 2022 10:39:15 -0600 Subject: [PATCH] Fix motion breaking frames --- frigate/video.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/frigate/video.py b/frigate/video.py index a4f31723e..4954456a8 100755 --- a/frigate/video.py +++ b/frigate/video.py @@ -511,15 +511,13 @@ 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 - # look for motion - motion_boxes = motion_detector.detect(frame) + if motion_enabled.value: + # look for motion + motion_boxes = motion_detector.detect(frame) regions = []