The Object recognition operation allows you to categorize and tag people, objects, and other content classes in your images. This operation uses AWS Rekognition machine learning for the analyses.
The feature is currently available on the REST API v0.7 or higher via add-ons API.
Object recognition works asynchronously through the REST API, unlike the image processing operations performed on the fly.
done.appdata section of
the processed file.Let’s take this image as an example:
Once it is uploaded to a project, you can make an API call to run object recognition via Rekognition API:
Get $YOUR_PUBLIC_KEY and $YOUR_SECRET_KEY from API keys.
To get the job result, you need to enable file.info_updated in the
Webhook section of the dashboard.
After completing the processing job, the webhook will be sent to the endpoint you specified in the webhook settings.
File information in response:
If your application does not have a backend or uses a mobile version, you can submit the request yourself.
You can track execution status using request_id from object recognition
request’s response:
The result will be available in JSON response in appdata.
Acquiring info about detected objects through a file info request to the API endpoint, specifying the
include parameter.
The endpoint for requesting Object recognition info:
There are two methods for getting info on detected objects via GET requests, for multi-file and single-file cases:
or
Where:
include parameter points our API to include appdata, an object holding
various application data.$UUID identifies the unique image for which you are requesting info on
detected objects.Where:
Accept header points at the REST API v0.7 or higher.Uploadcare.Simple stands for the auth-scheme that
requires your Uploadcare project Public and Secret keys.$UUID identifies the image we get info for.$UUID is provided; you will receive detection
info for all files in your project.The JSON response for requesting a single-file that is properly authenticated looks like this:
You don’t have to code most of the low-level API integrations. We have high-level libraries for all popular platforms: