mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-02 17:25:22 +03:00
Always set value for motion boxes
This commit is contained in:
parent
c419a6e38a
commit
f1978a47e8
@ -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 = []
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user