{
    "success": true,
    "ecm": 4,
    "status": "ok",
    "label_color": "green",
    "label_text": "Good",
    "display_text": "Good",
    "reason": "No water flow or clean water flow",
    "has_discharge_pipe": false,
    "is_real_flow": true,
    "is_clean_water": false,
    "is_silty_water": false,
    "detected_pipe_count": 0,
    "active_flow_count": 4,
    "muddy_roi_count": 0,
    "clean_roi_count": 4,
    "blue_ratio": 0.0476000000000000034194869158454821445047855377197265625,
    "flow_blue_ratio": 0.0229000000000000002164934898019055253826081752777099609375,
    "nonblue_ratio": 0.97709999999999996855848394261556677520275115966796875,
    "white_ratio": 0.001000000000000000020816681711721685132943093776702880859375,
    "brown_ratio": 0.013799999999999999766853164828717126511037349700927734375,
    "yellow_ratio": 0.000699999999999999992887633748495090912911109626293182373046875,
    "graycyan_ratio": 0.88619999999999998774313780813827179372310638427734375,
    "dark_ratio": 0.00119999999999999989487575735580549007863737642765045166015625,
    "silty_strength": 0.0143999999999999996058708262580694281496107578277587890625,
    "clean_strength": 0.7098999999999999754862756162765435874462127685546875,
    "image_url": "https://cctv.envautomation.com/env_cctv/koh/bd201/ai4/roi_masked.jpg",
    "image_file": "/home/envcctv/public_html/env_cctv/koh/bd201/ai4/roi_masked.jpg",
    "width": 1920,
    "height": 1080,
    "analyzed_at": "2026-09-21 02:20:46",
    "db_saved": true,
    "db_error": "",
    "roi_debug": {
        "pipe_1": {
            "roi": [
                0.08000000000000000166533453693773481063544750213623046875,
                0.55500000000000004884981308350688777863979339599609375,
                0.200000000000000011102230246251565404236316680908203125,
                0.814999999999999946709294817992486059665679931640625
            ],
            "px": [
                153,
                599,
                384,
                880
            ],
            "frame_usable": 28622,
            "frame_blue_ratio": 0.06519999999999999407140904850166407413780689239501953125,
            "flow_usable": 29222,
            "flow_blue_ratio": 0.000599999999999999947437878677902745039318688213825225830078125,
            "flow_nonblue_ratio": 0.99939999999999995505817196317366324365139007568359375,
            "flow_white_ratio": 0.000100000000000000004792173602385929598312941379845142364501953125,
            "flow_brown_ratio": 0,
            "flow_yellow_ratio": 0,
            "flow_graycyan_ratio": 0.95040000000000002255973186038318090140819549560546875,
            "flow_dark_ratio": 0.00200000000000000004163336342344337026588618755340576171875,
            "mass_row_ratio": 0.9835000000000000408562073062057606875896453857421875,
            "run_ratio": 0.9835000000000000408562073062057606875896453857421875,
            "max_row_ratio": 1,
            "roi_clean_strength": 0.7603999999999999648281345798750407993793487548828125,
            "roi_muddy_strength": 0,
            "pipe_detected": false,
            "clean_flow_detected": true,
            "muddy_flow_detected": false,
            "flow_detected": true,
            "muddy_roi_detected": false,
            "clean_roi_detected": true
        },
        "pipe_2": {
            "roi": [
                0.299999999999999988897769753748434595763683319091796875,
                0.55500000000000004884981308350688777863979339599609375,
                0.419999999999999984456877655247808434069156646728515625,
                0.814999999999999946709294817992486059665679931640625
            ],
            "px": [
                576,
                599,
                806,
                880
            ],
            "frame_usable": 26055,
            "frame_blue_ratio": 0.01340000000000000045241588253475129022262990474700927734375,
            "flow_usable": 28949,
            "flow_blue_ratio": 0.0234000000000000006605826996519681415520608425140380859375,
            "flow_nonblue_ratio": 0.97660000000000002362554596402333118021488189697265625,
            "flow_white_ratio": 0.000699999999999999992887633748495090912911109626293182373046875,
            "flow_brown_ratio": 0.00770000000000000024702462297909733024425804615020751953125,
            "flow_yellow_ratio": 0.0023999999999999997897515147116109801572747528553009033203125,
            "flow_graycyan_ratio": 0.93659999999999998809840917601832188665866851806640625,
            "flow_dark_ratio": 0.00289999999999999980015985556747182272374629974365234375,
            "mass_row_ratio": 0.9959000000000000074606987254810519516468048095703125,
            "run_ratio": 0.97929999999999994830801597345271147787570953369140625,
            "max_row_ratio": 1,
            "roi_clean_strength": 0.75,
            "roi_muddy_strength": 0.0097999999999999996835864379818303859792649745941162109375,
            "pipe_detected": false,
            "clean_flow_detected": true,
            "muddy_flow_detected": false,
            "flow_detected": true,
            "muddy_roi_detected": false,
            "clean_roi_detected": true
        },
        "pipe_3": {
            "roi": [
                0.57999999999999996003197111349436454474925994873046875,
                0.55500000000000004884981308350688777863979339599609375,
                0.6999999999999999555910790149937383830547332763671875,
                0.814999999999999946709294817992486059665679931640625
            ],
            "px": [
                1113,
                599,
                1344,
                880
            ],
            "frame_usable": 27119,
            "frame_blue_ratio": 0.00089999999999999997536692664112933925935067236423492431640625,
            "flow_usable": 29282,
            "flow_blue_ratio": 0,
            "flow_nonblue_ratio": 1,
            "flow_white_ratio": 0.0027999999999999999715505349939803636516444385051727294921875,
            "flow_brown_ratio": 0.02029999999999999860111898897230275906622409820556640625,
            "flow_yellow_ratio": 0.0002999999999999999737189393389513725196593441069126129150390625,
            "flow_graycyan_ratio": 0.8790999999999999925393012745189480483531951904296875,
            "flow_dark_ratio": 0,
            "mass_row_ratio": 0.987600000000000033395508580724708735942840576171875,
            "run_ratio": 0.9214999999999999857891452847979962825775146484375,
            "max_row_ratio": 1,
            "roi_clean_strength": 0.7060999999999999499067371289129368960857391357421875,
            "roi_muddy_strength": 0.020600000000000000255351295663786004297435283660888671875,
            "pipe_detected": false,
            "clean_flow_detected": true,
            "muddy_flow_detected": false,
            "flow_detected": true,
            "muddy_roi_detected": false,
            "clean_roi_detected": true
        },
        "pipe_4": {
            "roi": [
                0.8000000000000000444089209850062616169452667236328125,
                0.55500000000000004884981308350688777863979339599609375,
                0.92000000000000003996802888650563545525074005126953125,
                0.814999999999999946709294817992486059665679931640625
            ],
            "px": [
                1536,
                599,
                1766,
                880
            ],
            "frame_usable": 28085,
            "frame_blue_ratio": 0.10649999999999999744648704336213995702564716339111328125,
            "flow_usable": 29040,
            "flow_blue_ratio": 0.0677999999999999991562305012848810292780399322509765625,
            "flow_nonblue_ratio": 0.93220000000000002859934511434403248131275177001953125,
            "flow_white_ratio": 0.0004000000000000000191686944095437183932517655193805694580078125,
            "flow_brown_ratio": 0.02709999999999999908961711980737163685262203216552734375,
            "flow_yellow_ratio": 0,
            "flow_graycyan_ratio": 0.7782999999999999918287585387588478624820709228515625,
            "flow_dark_ratio": 0,
            "mass_row_ratio": 0.95869999999999999662492200513952411711215972900390625,
            "run_ratio": 0.88429999999999997495336856445646844804286956787109375,
            "max_row_ratio": 1,
            "roi_clean_strength": 0.6229999999999999982236431605997495353221893310546875,
            "roi_muddy_strength": 0.02709999999999999908961711980737163685262203216552734375,
            "pipe_detected": false,
            "clean_flow_detected": true,
            "muddy_flow_detected": false,
            "flow_detected": true,
            "muddy_roi_detected": false,
            "clean_roi_detected": true
        }
    }
}