Recognition Specification
Last updated
Last updated
A recognition specification describes the output format of your recognition algorithm. You may attach multiple algorithms that perform the same task to the same specification in order to leverage automatic updates of your embedded recognition models.
Parameter | Type | Attributes | Description |
---|---|---|---|
The id
field is an integer
for private models and a string
for public recognition models.
Parameter | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
Creates a new recognition specification.
A recognition specification object.
Get the list of existing recognition specifications.
A paginated list of responses.
Retrieve a recognition specification by ID.
A recognition specification object.
Updates the specified specification by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
This request accepts only the name
, metadata
and current_version_id
arguments. Other values are immutable.
A recognition specification object.
Permanently deletes a recognition specification. It cannot be undone. Attached resources like recognition versions will also be suppressed.
This cannot be undone. Attached resources like recognition versions will also be suppressed.
Return 204 (no content).
Run inference on the current version of the specification. Therefore, its current_version_id
field must not be null
. This endpoint returns a task ID.
On success, this endpoint will return a task ID. See Inference output section for a description of the response format.
Parameter | Type | Description |
---|---|---|
Parameter | Type | Default | Description |
---|---|---|---|
Parameter | Type | Description |
---|---|---|
Parameter | Type | Default | Description |
---|---|---|---|
Parameter | Type | Attributes | Description |
---|---|---|---|
Parameter | Type | Default | Description |
---|---|---|---|
Parameter | Type | Default | Description |
---|---|---|---|
Parameter | Type | Description |
---|---|---|
Parameter | Type | Default | Description |
---|---|---|---|
id
int (string)
read-only
The ID of the recognition specification. This field is a string for public recognition models.
name
string
A short name for your recognition specification.
description
string
A longer description of your recognition specification.
update_date
string
read-only
Date time (ISO 8601 format) of the last update of the recognition specification.
metadata
object
A JSON field containing any kind of information that you may find interesting to store.
current_version_id
int
nullable, hidden for public models
The ID of the current recognition version object that this specification will execute if you ask it to perform an inference. This is convenient if you want to allow your app to point to a constant API endpoint while keeping the possibility to smoothly update the recognition model behind. This field is hidden for public recognition models
outputs
array(object)
hidden
The specification of the outputs you would like to recognize. It's an array of output objects. As this field tends to be large, it is hidden when you access the list of recognition models.
labels
An output of type labels.
labels
array(object)
A list of labels objects that will be recognized by your model.
exclusive
bool
A boolean describing if the declared labels are mutually exclusive or not.
roi
string
ROI stands for "Region Of Interest". Possible values are:
NONE
: if your model is performing classification only without object localisation
BBOX
: if your model can also output bounding boxes for the multiple objects detected in the image.
id
int
The numeric ID of your label. Can be anything you want, this ID will be present in the inference response for you to use it.
name
string
The name of the label. It will also be present in the inference response.
name
string
A short name for your recognition model.
description
string
""
A longer description of your recognition model.
metadata
object
{}
A JSON field containing any kind of information that you may find interesting to store.
outputs
An output object to describe how input data should be pre-processed.
count
int
The total number of results.
next
string
The URL to the next page.
previous
string
The URL to the previous page.
results
array(object)
A list of your recognition specification objects. Please note that the output
field is not present and that current_version_id
is unavailable for public recognition models.
spec_id
int
The ID of the recognition specification to get.
name
string
optional
A short name for your network.
description
string
optional
A longer description of your network.
metadata
object
optional
A JSON field containing any kind of information that you may find interesting to store.
current_version_id
int
optional
The ID of the current recognition version object that this specification will execute if you ask it to perform an inference. This is convenient if you want to allow your app to point to a constant API endpoint while keeping the possibility to smoothly update the recognition model behind.
spec_id
int
The ID of the specification to delete.
spec_id
int
The neural network ID
inputs
array(object)
The inputs of the neural network as an array of input objects. Must be non empty.
show_discarded
bool
false
A boolean indicating if the response must include labels which did not pass the recognition threshold.
max_predictions
int
100
The maximum number of predicted and discarded objects to return.
image
An image input. It is the only supported type for now.
source
string
Either the URL of the image (in which case it must start with http:
or https:
), or directly the binary content of the image (in which case it must start with data:image/jpeg;encoding,
with encoding
being either binary
or base64
. jpeg
might be replaced by another image type).
bbox
null
(optional) A bounding box object to crop the image before performing inference.