From 66b554147235bf179e58fea9a2aea6f65273ab93 Mon Sep 17 00:00:00 2001 From: Josh Hawkins <32435876+hawkeye217@users.noreply.github.com> Date: Mon, 2 Oct 2023 11:52:40 -0500 Subject: [PATCH] don't disable motion boxes during ptz moves --- frigate/video.py | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/frigate/video.py b/frigate/video.py index 88fab0027..3d14a8d6e 100755 --- a/frigate/video.py +++ b/frigate/video.py @@ -776,19 +776,7 @@ def process_frames( logger.info(f"{camera_name}: frame {frame_time} is not in memory store.") continue - # look for motion if enabled and ptz is not moving - # ptz_moving_at_frame_time() always returns False for - # non ptz/autotracking cameras - motion_boxes = ( - motion_detector.detect(frame) - if motion_enabled.value - # and not ptz_moving_at_frame_time( - # frame_time, - # ptz_metrics["ptz_start_time"].value, - # ptz_metrics["ptz_stop_time"].value, - # ) - else [] - ) + motion_boxes = motion_detector.detect(frame) if motion_enabled.value else [] regions = [] consolidated_detections = []