Always set value for motion boxes

This commit is contained in:
Nick Mowen 2022-04-25 13:22:23 -06:00
parent c419a6e38a
commit f1978a47e8

View File

@ -515,9 +515,8 @@ def process_frames(
logger.info(f"{camera_name}: frame {frame_time} is not in memory store.")
continue
if motion_enabled.value:
# look for motion
motion_boxes = motion_detector.detect(frame)
# look for motion if enabled
motion_boxes = motion_detector.detect(frame) if motion_enabled.value else []
regions = []