From db9a408edf88ed0905e28f7ed674bdf86a341f89 Mon Sep 17 00:00:00 2001 From: Josh Hawkins <32435876+hawkeye217@users.noreply.github.com> Date: Fri, 30 Jun 2023 12:36:46 -0500 Subject: [PATCH] Don't detect motion when ptz is moving --- frigate/video.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/frigate/video.py b/frigate/video.py index 4dfcbedab..2d4e7fd5b 100755 --- a/frigate/video.py +++ b/frigate/video.py @@ -767,7 +767,11 @@ def process_frames( continue # look for motion if enabled - motion_boxes = motion_detector.detect(frame) if motion_enabled.value else [] + motion_boxes = ( + motion_detector.detect(frame) + if motion_enabled.value or ptz_moving.value + else [] + ) regions = [] consolidated_detections = []