Image to Ndarray (DP_ITN)

This function creates an image array

This function converts an image from a URL to a JSON array

Sample Request

{
    "block_id": 9,
    "project_id": 229,
    "parent_id": 8,
    "function_code": "DP_ITN",
    "args": {
        "image_url": "https://consolidatedlabel.com/app/uploads/2007/10/high-res-300dpi.jpg",
        "target_size": [28,28],
        "rescale": true
    }
}

Parameter Details

Image to Ndarray

POST https://autogon.ai/api/v1/engine/start

Request Body

NameTypeDescription

project_id*

int

current project ID

parent_id*

int

parent block ID

block_id*

int

current block ID

function_code*

String

block's function code

args*

object

block arguments

target_size*

array

The target size of the image array

image_url*

String

Path to uploaded image

rescale

boolean

specifies wether the image array should be scaled between 0-1

Default: true

{
    "status": "true",
    "message": {
        "id": 3,
        "project": 1,
        "block_id": 7,
        "parent_id": 6,
        "dataset_url": "",
        "x_value_url": "",
        "y_value_url": ""
    }
}
// Some code

Last updated