Method
describeImage POST
Copy POST

Describe the similarity between an image and a list of categories.

Arguments:

REQUIRED KEY TYPE DESCRIPTION
Yes deploymentToken str Authentication token to access created deployments. This token is only authorized to predict on deployments in the current project, and can be safely embedded in an application or website.
Yes deploymentId str Unique identifier of a deployment created under the project.
Yes image bytes Image to describe.
Yes categories list List of candidate categories to compare with the image.
No topN int Return the N most similar categories.
Note: The arguments for the API methods follow camelCase but for Python SDK underscore_case is followed.

Response:

KEY TYPE DESCRIPTION
success Boolean true if the call succeeded, false if there was an error
Prediction

Exceptions:

TYPE WHEN
DataNotFoundError

deploymentId is not found.

Language: