fix(cache): 修复 _load_rois_from_db 未加载 working_hours 字段的问题
Some checks failed
Python Test / test (push) Has been cancelled
Some checks failed
Python Test / test (push) Has been cancelled
- 在 roi_config 中补充读取数据库中的 working_hours 字段 - 确保 pipeline 能将 ROI 特定的工作时间配置正确传递给算法 - 修复后,LeavePostAlgorithm.is_in_working_hours() 将使用 ROI 配置而非全局默认值
This commit is contained in:
@@ -70,8 +70,7 @@ algorithms:
|
||||
confirm_sec: 10 # 上岗确认时间(10秒)
|
||||
return_sec: 30 # 离岗缓冲时间(30秒)
|
||||
intrusion:
|
||||
check_interval_sec: 1.0 # 检测间隔
|
||||
direction_sensitive: false # 方向敏感
|
||||
cooldown_seconds: 300 # 入侵检测冷却时间(秒)
|
||||
|
||||
# 日志配置
|
||||
logging:
|
||||
|
||||
Reference in New Issue
Block a user