system.py 1.1 KB

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