feat: add video detection and robot alerts

This commit is contained in:
2026-08-12 17:15:11 +08:00
parent 67d5b40736
commit bb395e3d9a
22 changed files with 1623 additions and 319 deletions

16
.env.example Normal file
View File

@@ -0,0 +1,16 @@
YOLO_WEIGHTS=runs/detect/smoke_fire_yolo11s_v1-4/weights/best.pt
YOLO_DEVICE=0
YOLO_IMGSZ=768
YOLO_CONF=0.40
YOLO_IOU=0.45
# 企业微信群机器人,可留空。
WECHAT_WEBHOOK_URL=
# 飞书群自定义机器人,可留空。开启签名校验时再填写密钥。
FEISHU_WEBHOOK_URL=
FEISHU_SECRET=
# 连续命中帧数与每个类别的告警冷却时间。
ALERT_CONFIRM_FRAMES=3
ALERT_COOLDOWN_SECONDS=60