OPTIONS and HEAD requests are supported, both of which can use the functions supported by the Flask framework by default.
{
"inputs": [{
"name": "appsrc0",
"id": 0,
"dataType": "BINARY",
"format": "FORMAT_NONE",
"shape": [len(binary_data)],
"data": base64.b64encode(binary_data).decode()
}]
}
{
"isSuccess": true,
"errorCode": 0,
"errorMsg": "Succeeded!",
"outputs": [{
"name": "appsink0",
"dataType": "STRING",
"format": "FORMAT_NONE",
"shape": [len(result)],
"data": base64.b64encode(result).decode()
}]
}