From a973605e2e7a5c5b2367e4861874ac661c05023c Mon Sep 17 00:00:00 2001 From: Nick Mowen Date: Sun, 17 Apr 2022 15:33:31 -0600 Subject: [PATCH] Send motion to correct funs --- frigate/video.py | 3 +++ process_clip.py | 2 ++ 2 files changed, 5 insertions(+) diff --git a/frigate/video.py b/frigate/video.py index aca1db655..2d3b0ddd7 100755 --- a/frigate/video.py +++ b/frigate/video.py @@ -515,6 +515,9 @@ def process_frames( logger.info(f"{camera_name}: frame {frame_time} is not in memory store.") continue + if not motion_enabled: + continue + # look for motion motion_boxes = motion_detector.detect(frame) diff --git a/process_clip.py b/process_clip.py index 569998526..f93bd2726 100644 --- a/process_clip.py +++ b/process_clip.py @@ -115,6 +115,7 @@ class ProcessClip: } detection_enabled = mp.Value("d", 1) + motion_enabled = mp.Value("d", True) stop_event = mp.Event() model_shape = (self.config.model.height, self.config.model.width) @@ -133,6 +134,7 @@ class ProcessClip: objects_to_track, object_filters, detection_enabled, + motion_enabled, stop_event, exit_on_empty=True, )