class Settings(): CAMERA_CONFIG = { "cam01": "rtsp://admin:password@192.168.1.10:554/live/ch0", # 可扩展多个摄像头 } OUTPUT_DIR = "./records" MAX_TASK_SECONDS = 60 * 10 # 10分钟超时 settings = Settings()