mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-06 19:25:22 +03:00
don't disable motion boxes during ptz moves
This commit is contained in:
parent
6f2690b985
commit
66b5541472
@ -776,19 +776,7 @@ def process_frames(
|
||||
logger.info(f"{camera_name}: frame {frame_time} is not in memory store.")
|
||||
continue
|
||||
|
||||
# look for motion if enabled and ptz is not moving
|
||||
# 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 []
|
||||
)
|
||||
motion_boxes = motion_detector.detect(frame) if motion_enabled.value else []
|
||||
|
||||
regions = []
|
||||
consolidated_detections = []
|
||||
|
||||
Loading…
Reference in New Issue
Block a user