system.py 1.1 KB

123456789101112131415161718192021222324252627282930313233343536
  1. """
  2. 系统配置
  3. """
  4. from .llm import LLM_CONFIG, LLM_SAFETY_CONFIG
  5. # 系统配置
  6. SYSTEM_CONFIG = {
  7. 'name': '施工现场安全行为智能识别系统',
  8. 'version': '2.0.0',
  9. # === 功能开关 ===
  10. # 摄像头模块
  11. 'enable_panorama_camera': True, # 启用全景摄像头
  12. 'enable_ptz_camera': True, # 启用 PTZ 球机
  13. # 检测模块
  14. 'enable_detection': True, # 启用人体检测 (YOLO)
  15. 'enable_safety_detection': False, # 启用安全检测 (安全帽/反光衣)
  16. # 联动与校准
  17. 'enable_calibration': True, # 启用自动校准
  18. 'enable_ptz_tracking': True, # 启用 PTZ 跟踪联动
  19. # 大模型
  20. 'enable_llm': False, # 启用大模型判断
  21. # 事件推送
  22. 'enable_event_push': False, # 启用事件推送
  23. # === 工作模式 ===
  24. 'mode': 'safety', # 工作模式: 'safety'(安全检测)
  25. # === 安全判断策略 ===
  26. 'safety_strategy': 'hybrid', # 'llm'(仅大模型), 'rule'(仅规则), 'hybrid'(混合)
  27. }