feat: 设置面板分组整理 + 人员时间精确到秒
This commit is contained in:
30
config.py
30
config.py
@@ -25,22 +25,26 @@ DEFAULT_CONFIG = {
|
||||
"camera_index": 0,
|
||||
"capture_interval": 60,
|
||||
"auto_analyze": True,
|
||||
"refresh_interval": 5, # 页面刷新间隔(秒)
|
||||
"display_limit": 20, # 显示最近多少条
|
||||
"refresh_interval": 5,
|
||||
"display_limit": 20,
|
||||
|
||||
# 检测算法开关
|
||||
"use_yolo": True, # YOLO 检测(最准确)
|
||||
"use_haar_cascade": False, # Haar Cascade 人体检测(备用)
|
||||
"use_mediapipe_face": True, # MediaPipe 人脸检测
|
||||
"use_face_recognition": True, # face_recognition 人脸识别
|
||||
# 人体检测设置(YOLO)
|
||||
"use_yolo": True,
|
||||
"yolo_min_confidence": 0.3,
|
||||
|
||||
# 连续性判断配置
|
||||
"confirm_frames": 3, # 连续几帧确认
|
||||
"min_detection_confidence": 0.3, # 检测置信度阈值
|
||||
# 人员识别设置
|
||||
"use_face_recognition": True,
|
||||
"use_mediapipe_face": True,
|
||||
"use_color_histogram": True,
|
||||
"face_match_threshold": 0.6,
|
||||
|
||||
# AI大模型分析开关
|
||||
"use_vision_api": False, # 是否使用大模型分析(默认关闭)
|
||||
"vision_api_trigger": "person_change", # 触发条件:person_change/motion/brightness/always
|
||||
# 连续判断设置
|
||||
"confirm_frames": 3,
|
||||
"leave_frames": 2,
|
||||
|
||||
# AI大模型分析
|
||||
"use_vision_api": False,
|
||||
"vision_api_trigger": "person_change",
|
||||
|
||||
# Vision API 配置
|
||||
"vision_api_url": os.environ.get("VISION_API_URL", "https://dashscope.aliyuncs.com/compatible-mode/v1"),
|
||||
|
||||
Reference in New Issue
Block a user