{
    "server": {
        "port": 8011,
        "host": "0.0.0.0",
        "protocol": "http",
        "ssl_keyfile" : "",
        "ssl_certfile" : "",
        "reload": true,
        "log_level": "error"
    },
    "cors": {
        "allow_origins": [
            "http://localhost", "http://127.0.0.1",
            "http://localhost:8010", "http://127.0.0.1:8010",
            "http://localhost:8011", "http://127.0.0.1:8011"
            ],
        "allow_methods": ["*"],
        "allow_headers": ["*"],
        "allow_credentials": true
    },
    "logging": {
        "level": "INFO",
        "format": "%(levelname)s:     %(name)s - %(message)s",
        "datefmt": "%Y-%m-%d %H:%M:%S",
        "filename": "svl-infra-sim.log",
        "filemode": "a"
    },
    "application": {
        "name": "svl-infra-sim",
        "version": "1.0.0",
        "description": "svl-infra-sim is a web service for simulation slv infrastructure.",
        "author": "jlbee",
        "license": "MIT"
    },
    "api": {
        "prefix" : "/api/v1",
        "tags" : ["api"],
        "docs": "/docs",
        "redoc": "/redoc",
        "openapi": "/openapi.json"
    },
    "video": {
        "sources": [
            {
                "name": "camera1",
                "type": "file",
                "path": "d:/dev/svl-infra-sim/videos/office-workers_webrtc.mp4",
                "duplicate_stream": true,
                "disabled": false
            },
            {
                "name": "camera2",
                "type": "file",
                "path": "d:/dev/svl-infra-sim/videos/speaker_webrtc.mp4",
                "duplicate_stream": true,
                "disabled": false
            },
            {
                "name": "camera3",
                "type": "file",
                "path": "d:/dev/svl-infra-sim/videos/meeting_webrtc.mp4",
                "duplicate_stream": true,
                "disabled": false
            },
            {
                "name": "camera4",
                "type": "webcam",
                "path": "video=Integrated Camera",
                "disabled": false
            }
        ]
    },

    "webcam": {
        "resolution": "1280x720",
        "framerate": 30
    },

    "yolo": {
        "confidence" : 0.6,
        "iou" : 0.45,
        "imgsz" : 512,
        "device" : "cpu",
        "use_half" : false,
        "min_area_ratio" : 0.0025,
        "max_area_ratio" : 0.8,
        "max_faces" : 5
    },

    "facerecog": {
        "process_every_n_frames" : 1,
        "drop_grab_count" : 20,
        "broadcast_max_fps" : 15.0,
        "loop_sleep_seconds" : 0.0,
        "detect_width" : 0
    }
}
