mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-05 18:55:23 +03:00
fix motion logic
This commit is contained in:
parent
db9a408edf
commit
1a78230eae
@ -769,7 +769,7 @@ def process_frames(
|
||||
# look for motion if enabled
|
||||
motion_boxes = (
|
||||
motion_detector.detect(frame)
|
||||
if motion_enabled.value or ptz_moving.value
|
||||
if motion_enabled.value and not ptz_moving.value
|
||||
else []
|
||||
)
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user