配置修改

This commit is contained in:
2026-01-21 13:29:00 +08:00
parent 1e562798eb
commit e965b10603
4 changed files with 58 additions and 24 deletions

View File

@@ -1,5 +1,16 @@
# 安保异常行为识别系统 - 核心配置
# 云端同步配置
cloud:
enabled: false # 启用云端同步(云端为主、本地为辅)
api_url: "https://api.example.com" # 云端API地址
api_key: "your-api-key" # API密钥
device_id: "EDGE-001" # 设备唯一标识
sync_interval: 60 # 配置同步间隔(秒)
alarm_retry_interval: 60 # 报警重试间隔(秒)
status_report_interval: 60 # 状态上报间隔(秒)
max_retries: 3 # 最大重试次数
# 数据库配置
database:
dialect: "sqlite" # sqlite 或 mysql
@@ -12,21 +23,23 @@ database:
# TensorRT模型配置
model:
engine_path: "models/yolo11n_fp16_480.engine"
engine_path: "models/yolo11n.engine"
onnx_path: "models/yolo11n.onnx"
pt_model_path: "models/yolo11n.pt"
imgsz: [480, 480]
imgsz: [640, 640]
conf_threshold: 0.5
iou_threshold: 0.45
device: 0 # GPU设备号
batch_size: 8 # 最大batch size
half: true # FP16推理
device: 0
batch_size: 8
half: false
use_onnx: true
# RTSP流配置
stream:
buffer_size: 2 # 每路摄像头帧缓冲大小
reconnect_delay: 3.0 # 重连延迟(秒)
timeout: 10.0 # 连接超时(秒)
fps_limit: 30 # 最大处理FPS
fps_limit: 10.0 # 最大处理FPS
# 推理队列配置
inference: