{
    "success": true,
    "ecm": 1,
    "status": "ok",
    "label_color": "green",
    "label_text": "Good",
    "display_text": "Good",
    "reason": "No water flow or clean water flow",
    "has_discharge_pipe": true,
    "is_real_flow": true,
    "is_clean_water": true,
    "is_silty_water": false,
    "detected_pipe_count": 1,
    "active_flow_count": 1,
    "muddy_roi_count": 0,
    "clean_roi_count": 1,
    "blue_ratio": 0.239400000000000001687538997430237941443920135498046875,
    "flow_blue_ratio": 0.384599999999999997424282582869636826217174530029296875,
    "nonblue_ratio": 0.6153999999999999470645661858725361526012420654296875,
    "white_ratio": 0.003000000000000000062450045135165055398829281330108642578125,
    "brown_ratio": 0.053100000000000001365574320288942544721066951751708984375,
    "yellow_ratio": 0.03769999999999999740207812237713369540870189666748046875,
    "graycyan_ratio": 0.337299999999999988720134069808409549295902252197265625,
    "dark_ratio": 0.0745999999999999996447286321199499070644378662109375,
    "silty_strength": 0.085199999999999997957189634689711965620517730712890625,
    "clean_strength": 0.272799999999999986943777230408159084618091583251953125,
    "image_url": "https://cctv.envautomation.com/env_cctv/dtu3/roi_masked.jpg",
    "image_file": "/home/envcctv/public_html/env_cctv/dtu3/roi_masked.jpg",
    "width": 1920,
    "height": 1080,
    "analyzed_at": "2026-09-20 23:46:40",
    "db_saved": true,
    "db_error": "",
    "roi_debug": {
        "ecm1_pipe": {
            "roi": [
                0.05000000000000000277555756156289135105907917022705078125,
                0.450000000000000011102230246251565404236316680908203125,
                0.2300000000000000099920072216264088638126850128173828125,
                0.84999999999999997779553950749686919152736663818359375
            ],
            "px": [
                96,
                486,
                441,
                918
            ],
            "frame_usable": 61245,
            "frame_blue_ratio": 0.239400000000000001687538997430237941443920135498046875,
            "flow_usable": 60682,
            "flow_blue_ratio": 0.384599999999999997424282582869636826217174530029296875,
            "flow_nonblue_ratio": 0.6153999999999999470645661858725361526012420654296875,
            "flow_white_ratio": 0.003000000000000000062450045135165055398829281330108642578125,
            "flow_brown_ratio": 0.053100000000000001365574320288942544721066951751708984375,
            "flow_yellow_ratio": 0.03769999999999999740207812237713369540870189666748046875,
            "flow_graycyan_ratio": 0.337299999999999988720134069808409549295902252197265625,
            "flow_dark_ratio": 0.068000000000000004884981308350688777863979339599609375,
            "mass_row_ratio": 0.76339999999999996749266983897541649639606475830078125,
            "run_ratio": 0.580600000000000004973799150320701301097869873046875,
            "max_row_ratio": 0.89400000000000001687538997430237941443920135498046875,
            "roi_clean_strength": 0.272799999999999986943777230408159084618091583251953125,
            "roi_muddy_strength": 0.085199999999999997957189634689711965620517730712890625,
            "pipe_detected": true,
            "clean_flow_detected": true,
            "muddy_flow_detected": false,
            "flow_detected": true,
            "muddy_roi_detected": false,
            "clean_roi_detected": true
        }
    }
}