{
    "success": true,
    "mode": "QJN9C10_ECM1_5_PIPE_ANALYSIS",
    "pipe_total": 5,
    "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": 5,
    "active_flow_count": 1,
    "muddy_roi_count": 0,
    "clean_roi_count": 1,
    "blue_ratio": 0.8869000000000000216715534406830556690692901611328125,
    "flow_blue_ratio": 0.8745000000000000550670620214077644050121307373046875,
    "nonblue_ratio": 0.125500000000000000444089209850062616169452667236328125,
    "white_ratio": 0.04399999999999999744648704336213995702564716339111328125,
    "brown_ratio": 0.0020999999999999998702426839969348293379880487918853759765625,
    "yellow_ratio": 0,
    "graycyan_ratio": 0.0254999999999999983624210386778941028751432895660400390625,
    "dark_ratio": 0.025000000000000001387778780781445675529539585113525390625,
    "silty_strength": 0.0020999999999999998702426839969348293379880487918853759765625,
    "clean_strength": 0.06439999999999999891198143586734659038484096527099609375,
    "image_url": "https://cctv.envautomation.com/env_cctv/qingjian/n9c10/ecm1/roi_masked.jpg",
    "image_file": "/home/envcctv/public_html/env_cctv/qingjian/n9c10/ecm1/roi_masked.jpg",
    "width": 1920,
    "height": 1080,
    "analyzed_at": "2026-11-12 08:05:39",
    "db_saved": true,
    "db_error": "",
    "roi_debug": {
        "pipe_1": {
            "roi": [
                0.25500000000000000444089209850062616169452667236328125,
                0.2099999999999999922284388276239042170345783233642578125,
                0.317000000000000003996802888650563545525074005126953125,
                0.270000000000000017763568394002504646778106689453125
            ],
            "px": [
                489,
                226,
                608,
                291
            ],
            "frame_usable": 3391,
            "frame_blue_ratio": 0.7964999999999999857891452847979962825775146484375,
            "flow_usable": 3409,
            "flow_blue_ratio": 0.95069999999999998951949464753852225840091705322265625,
            "flow_nonblue_ratio": 0.04929999999999999660271754464702098630368709564208984375,
            "flow_white_ratio": 0,
            "flow_brown_ratio": 0,
            "flow_yellow_ratio": 0,
            "flow_graycyan_ratio": 0.00089999999999999997536692664112933925935067236423492431640625,
            "flow_dark_ratio": 0.00200000000000000004163336342344337026588618755340576171875,
            "mass_row_ratio": 0,
            "run_ratio": 0,
            "max_row_ratio": 0.05000000000000000277555756156289135105907917022705078125,
            "roi_clean_strength": 0.000699999999999999992887633748495090912911109626293182373046875,
            "roi_muddy_strength": 0,
            "pipe_detected": true,
            "clean_flow_detected": false,
            "muddy_flow_detected": false,
            "flow_detected": false,
            "muddy_roi_detected": false,
            "clean_roi_detected": false
        },
        "pipe_2": {
            "roi": [
                0.3930000000000000159872115546022541821002960205078125,
                0.2099999999999999922284388276239042170345783233642578125,
                0.450000000000000011102230246251565404236316680908203125,
                0.270000000000000017763568394002504646778106689453125
            ],
            "px": [
                754,
                226,
                864,
                291
            ],
            "frame_usable": 3161,
            "frame_blue_ratio": 0.81369999999999997886135361113701947033405303955078125,
            "flow_usable": 3146,
            "flow_blue_ratio": 0.92400000000000004352074256530613638460636138916015625,
            "flow_nonblue_ratio": 0.07599999999999999811262085813723388127982616424560546875,
            "flow_white_ratio": 0,
            "flow_brown_ratio": 0,
            "flow_yellow_ratio": 0,
            "flow_graycyan_ratio": 0.04070000000000000006661338147750939242541790008544921875,
            "flow_dark_ratio": 0.03139999999999999735766920139212743379175662994384765625,
            "mass_row_ratio": 0.1428999999999999992450483432548935525119304656982421875,
            "run_ratio": 0.07140000000000000512923037376822321675717830657958984375,
            "max_row_ratio": 0.86209999999999997744026813961681909859180450439453125,
            "roi_clean_strength": 0.0325000000000000011102230246251565404236316680908203125,
            "roi_muddy_strength": 0,
            "pipe_detected": true,
            "clean_flow_detected": false,
            "muddy_flow_detected": false,
            "flow_detected": false,
            "muddy_roi_detected": false,
            "clean_roi_detected": false
        },
        "pipe_3": {
            "roi": [
                0.55700000000000005062616992290713824331760406494140625,
                0.2099999999999999922284388276239042170345783233642578125,
                0.5949999999999999733546474089962430298328399658203125,
                0.270000000000000017763568394002504646778106689453125
            ],
            "px": [
                1069,
                226,
                1142,
                291
            ],
            "frame_usable": 2048,
            "frame_blue_ratio": 0.9170000000000000373034936274052597582340240478515625,
            "flow_usable": 2037,
            "flow_blue_ratio": 0.925899999999999945288209346472285687923431396484375,
            "flow_nonblue_ratio": 0.074099999999999999200639422269887290894985198974609375,
            "flow_white_ratio": 0.0005000000000000000104083408558608425664715468883514404296875,
            "flow_brown_ratio": 0,
            "flow_yellow_ratio": 0,
            "flow_graycyan_ratio": 0.0142000000000000008160139230994900572113692760467529296875,
            "flow_dark_ratio": 0.0168999999999999983568699235547683201730251312255859375,
            "mass_row_ratio": 0.035700000000000002564615186884111608378589153289794921875,
            "run_ratio": 0.035700000000000002564615186884111608378589153289794921875,
            "max_row_ratio": 0.40000000000000002220446049250313080847263336181640625,
            "roi_clean_strength": 0.011900000000000000854871728961370536126196384429931640625,
            "roi_muddy_strength": 0,
            "pipe_detected": true,
            "clean_flow_detected": false,
            "muddy_flow_detected": false,
            "flow_detected": false,
            "muddy_roi_detected": false,
            "clean_roi_detected": false
        },
        "pipe_4": {
            "roi": [
                0.620999999999999996447286321199499070644378662109375,
                0.2099999999999999922284388276239042170345783233642578125,
                0.66000000000000003108624468950438313186168670654296875,
                0.270000000000000017763568394002504646778106689453125
            ],
            "px": [
                1192,
                226,
                1267,
                291
            ],
            "frame_usable": 2242,
            "frame_blue_ratio": 0.99460000000000003961275751862558536231517791748046875,
            "flow_usable": 2184,
            "flow_blue_ratio": 0.9977000000000000312638803734444081783294677734375,
            "flow_nonblue_ratio": 0.0022999999999999999611421941381195210851728916168212890625,
            "flow_white_ratio": 0,
            "flow_brown_ratio": 0,
            "flow_yellow_ratio": 0,
            "flow_graycyan_ratio": 0.0005000000000000000104083408558608425664715468883514404296875,
            "flow_dark_ratio": 0,
            "mass_row_ratio": 0,
            "run_ratio": 0,
            "max_row_ratio": 0.0256000000000000012267964422107979771681129932403564453125,
            "roi_clean_strength": 0.0004000000000000000191686944095437183932517655193805694580078125,
            "roi_muddy_strength": 0,
            "pipe_detected": true,
            "clean_flow_detected": false,
            "muddy_flow_detected": false,
            "flow_detected": false,
            "muddy_roi_detected": false,
            "clean_roi_detected": false
        },
        "pipe_5": {
            "roi": [
                0.70499999999999996003197111349436454474925994873046875,
                0.200000000000000011102230246251565404236316680908203125,
                0.74499999999999999555910790149937383830547332763671875,
                0.270000000000000017763568394002504646778106689453125
            ],
            "px": [
                1353,
                216,
                1430,
                291
            ],
            "frame_usable": 2625,
            "frame_blue_ratio": 0.97640000000000004565237077258643694221973419189453125,
            "flow_usable": 2434,
            "flow_blue_ratio": 0.550100000000000033395508580724708735942840576171875,
            "flow_nonblue_ratio": 0.449900000000000022115642650533118285238742828369140625,
            "flow_white_ratio": 0.238300000000000011812772982011665590107440948486328125,
            "flow_brown_ratio": 0.0114999999999999998057109706905976054258644580841064453125,
            "flow_yellow_ratio": 0,
            "flow_graycyan_ratio": 0.0723000000000000031530333899354445748031139373779296875,
            "flow_dark_ratio": 0.07090000000000000468514116391816060058772563934326171875,
            "mass_row_ratio": 0.9375,
            "run_ratio": 0.9375,
            "max_row_ratio": 0.5404999999999999804600747665972448885440826416015625,
            "roi_clean_strength": 0.296099999999999974331643670666380785405635833740234375,
            "roi_muddy_strength": 0.0114999999999999998057109706905976054258644580841064453125,
            "pipe_detected": true,
            "clean_flow_detected": true,
            "muddy_flow_detected": false,
            "flow_detected": true,
            "muddy_roi_detected": false,
            "clean_roi_detected": true
        }
    }
}