修复 ROI 区域内人员离开十几分钟未触发告警的问题。
Some checks failed
Python Test / test (push) Has been cancelled

1. 仍在 confirm_sec 滑动窗口内(未完成确认)
2. threshold_sec 阈值设置过长(需检查数据库实际配置值)
3. 新算法未被正确调用
This commit is contained in:
2026-01-22 12:22:26 +08:00
parent cc4f33c0fd
commit 20f295a491
3 changed files with 31 additions and 78 deletions

View File

@@ -136,9 +136,9 @@ def create_roi(
rule_type: str,
direction: Optional[str] = None,
stay_time: Optional[int] = None,
threshold_sec: int = 360,
confirm_sec: int = 30,
return_sec: int = 5,
threshold_sec: int = 300,
confirm_sec: int = 10,
return_sec: int = 30,
) -> ROI:
import json