Node-REDで機械学習_CODE

1st October 2021 at 9:22pm
[
    {
        "id": "30727d20eb9731bc",
        "type": "inject",
        "z": "bbc7170261bafbe4",
        "name": "実行",
        "props": [
            {
                "p": "payload"
            },
            {
                "p": "topic",
                "vt": "str"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payloadType": "date",
        "x": 150,
        "y": 60,
        "wires": [
            [
                "a1073781125e5843"
            ]
        ]
    },
    {
        "id": "a1073781125e5843",
        "type": "file in",
        "z": "bbc7170261bafbe4",
        "name": "",
        "filename": "c:/tmp/019.png",
        "format": "",
        "chunk": false,
        "sendError": false,
        "encoding": "none",
        "allProps": false,
        "x": 320,
        "y": 60,
        "wires": [
            [
                "d175111c0641da56"
            ]
        ]
    },
    {
        "id": "c5abd02ee5bbc6d3",
        "type": "image",
        "z": "bbc7170261bafbe4",
        "name": "",
        "width": 160,
        "data": "payload",
        "dataType": "msg",
        "thumbnail": false,
        "active": true,
        "pass": false,
        "outputs": 0,
        "x": 480,
        "y": 180,
        "wires": []
    },
    {
        "id": "92715ce9fe92b35f",
        "type": "http request",
        "z": "bbc7170261bafbe4",
        "name": "",
        "method": "POST",
        "ret": "obj",
        "paytoqs": "ignore",
        "url": "http://localhost:38101/v1/predict/4fb17929-da02-4232-a3d5-1e0023eaa27a",
        "tls": "",
        "persist": false,
        "proxy": "",
        "authType": "",
        "x": 610,
        "y": 120,
        "wires": [
            [
                "c1f308c52b7531a4"
            ]
        ]
    },
    {
        "id": "d175111c0641da56",
        "type": "base64",
        "z": "bbc7170261bafbe4",
        "name": "",
        "action": "",
        "property": "payload",
        "x": 300,
        "y": 120,
        "wires": [
            [
                "dcf8048a38dee8a2",
                "c5abd02ee5bbc6d3"
            ]
        ]
    },
    {
        "id": "c1f308c52b7531a4",
        "type": "debug",
        "z": "bbc7170261bafbe4",
        "name": "",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "payload",
        "targetType": "msg",
        "statusVal": "",
        "statusType": "auto",
        "x": 790,
        "y": 120,
        "wires": []
    },
    {
        "id": "dcf8048a38dee8a2",
        "type": "template",
        "z": "bbc7170261bafbe4",
        "name": "body",
        "field": "payload",
        "fieldType": "msg",
        "format": "json",
        "syntax": "mustache",
        "template": "{\n    \"image\": \"{{{payload}}}\"\n}",
        "output": "json",
        "x": 450,
        "y": 120,
        "wires": [
            [
                "92715ce9fe92b35f"
            ]
        ]
    }
]