Don't detect motion when ptz is moving

This commit is contained in:
Josh Hawkins 2023-06-30 12:36:46 -05:00
parent f26093dc4a
commit db9a408edf

View File

@ -767,7 +767,11 @@ def process_frames(
continue continue
# look for motion if enabled # 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 = [] regions = []
consolidated_detections = [] consolidated_detections = []