don't disable motion boxes during ptz moves

This commit is contained in:
Josh Hawkins 2023-10-02 11:52:40 -05:00
parent 6f2690b985
commit 66b5541472

View File

@ -776,19 +776,7 @@ def process_frames(
logger.info(f"{camera_name}: frame {frame_time} is not in memory store.") logger.info(f"{camera_name}: frame {frame_time} is not in memory store.")
continue continue
# look for motion if enabled and ptz is not moving motion_boxes = motion_detector.detect(frame) if motion_enabled.value else []
# 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 []
)
regions = [] regions = []
consolidated_detections = [] consolidated_detections = []