{
    "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": true,
    "is_real_flow": false,
    "is_clean_water": false,
    "is_silty_water": false,
    "detected_pipe_count": 1,
    "active_flow_count": 0,
    "muddy_roi_count": 0,
    "clean_roi_count": 0,
    "blue_ratio": 0.17530000000000001136868377216160297393798828125,
    "flow_blue_ratio": 0.0305999999999999987287946368041957612149417400360107421875,
    "nonblue_ratio": 0.9694000000000000394351218346855603158473968505859375,
    "white_ratio": 0.00189999999999999999618360835285102439229376614093780517578125,
    "brown_ratio": 0.001000000000000000020816681711721685132943093776702880859375,
    "yellow_ratio": 0,
    "graycyan_ratio": 0.0103000000000000001276756478318930021487176418304443359375,
    "dark_ratio": 0.179999999999999993338661852249060757458209991455078125,
    "silty_strength": 0.001000000000000000020816681711721685132943093776702880859375,
    "clean_strength": 0.01009999999999999960309526869650653679855167865753173828125,
    "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-11-12 07:39:48",
    "db_saved": true,
    "db_error": "",
    "roi_debug": {
        "pipe_1": {
            "roi": [
                0.2600000000000000088817841970012523233890533447265625,
                0.2049999999999999877875467291232780553400516510009765625,
                0.36999999999999999555910790149937383830547332763671875,
                0.3649999999999999911182158029987476766109466552734375
            ],
            "px": [
                499,
                221,
                710,
                394
            ],
            "frame_usable": 16008,
            "frame_blue_ratio": 0.1988000000000000044853010194856324233114719390869140625,
            "flow_usable": 14711,
            "flow_blue_ratio": 0.038499999999999999500399638918679556809365749359130859375,
            "flow_nonblue_ratio": 0.96150000000000002131628207280300557613372802734375,
            "flow_white_ratio": 0,
            "flow_brown_ratio": 0.00119999999999999989487575735580549007863737642765045166015625,
            "flow_yellow_ratio": 0,
            "flow_graycyan_ratio": 0.00919999999999999984456877655247808434069156646728515625,
            "flow_dark_ratio": 0.094200000000000005950795411990839056670665740966796875,
            "static_silt_usable": 16234,
            "static_silt_ratio": 0,
            "static_silt_row_ratio": 0,
            "static_silt_max_row_ratio": 0,
            "mass_row_ratio": 0,
            "run_ratio": 0,
            "max_row_ratio": 0.11759999999999999620303725578196463175117969512939453125,
            "roi_clean_strength": 0.007300000000000000065225602696727946749888360500335693359375,
            "roi_muddy_strength": 0.00119999999999999989487575735580549007863737642765045166015625,
            "pipe_detected": true,
            "clean_flow_detected": false,
            "muddy_flow_detected": false,
            "static_silt_detected": false,
            "flow_detected": false,
            "muddy_roi_detected": false,
            "clean_roi_detected": false
        },
        "pipe_2": {
            "roi": [
                0.53500000000000003108624468950438313186168670654296875,
                0.2200000000000000011102230246251565404236316680908203125,
                0.58499999999999996447286321199499070644378662109375,
                0.340000000000000024424906541753443889319896697998046875
            ],
            "px": [
                1027,
                237,
                1123,
                367
            ],
            "frame_usable": 2152,
            "frame_blue_ratio": 0,
            "flow_usable": 3798,
            "flow_blue_ratio": 0.0002999999999999999737189393389513725196593441069126129150390625,
            "flow_nonblue_ratio": 0.9997000000000000330402372128446586430072784423828125,
            "flow_white_ratio": 0.00919999999999999984456877655247808434069156646728515625,
            "flow_brown_ratio": 0,
            "flow_yellow_ratio": 0,
            "flow_graycyan_ratio": 0.01450000000000000073552275381416620803065598011016845703125,
            "flow_dark_ratio": 0.32179999999999997495336856445646844804286956787109375,
            "static_silt_usable": 5528,
            "static_silt_ratio": 0,
            "static_silt_row_ratio": 0,
            "static_silt_max_row_ratio": 0,
            "mass_row_ratio": 0.035700000000000002564615186884111608378589153289794921875,
            "run_ratio": 0.035700000000000002564615186884111608378589153289794921875,
            "max_row_ratio": 0.6512000000000000010658141036401502788066864013671875,
            "roi_clean_strength": 0.02079999999999999904520819882236537523567676544189453125,
            "roi_muddy_strength": 0,
            "pipe_detected": false,
            "clean_flow_detected": false,
            "muddy_flow_detected": false,
            "static_silt_detected": false,
            "flow_detected": false,
            "muddy_roi_detected": false,
            "clean_roi_detected": false
        }
    }
}