Classify an image.
REQUIRED | KEY | TYPE | DESCRIPTION |
---|---|---|---|
Yes | deploymentToken | str | A deployment token to authenticate access to created deployments. This token is only authorized to predict on deployments in this project, so it is safe to embed this model inside of an application or website. |
Yes | deploymentId | str | A unique string identifier to a deployment created under the project. |
No | image | bytes | The binary data of the image to classify. One of image or doc_id must be specified. |
No | docId | str | The document ID of the image. One of image or doc_id must be specified. |
KEY | TYPE | DESCRIPTION |
---|---|---|
success | Boolean | true if the call succeeded, false if there was an error |
Prediction |
TYPE | WHEN |
---|---|
DataNotFoundError |
|
DataNotFoundError |
|