AI Video Object Detection API
ApyHub
500 atoms
AI tier
About
This Utility API uses AI to recognise key objects within videos.
This API leverages machine learning algorithms to analyse visual data for object detection, such as car, toy, or any object. It's useful in different areas, making image searches better and providing helpful information. This API can also be used in enhancing videos search functionality to providing context-aware information in augmented reality experiences.
Provider (requested_service) | Atoms |
---|---|
Azure | 500 |
500 |
Note: In order to test the API on API Playground, just click on "Show optional inputs" and enter the Authentication token for the provider before clicking on Send request. The output response structure and the result of the AI utility APIs depend on the service provider and it may vary depending on which service provider is selected.
Select API Endpoints
Input
API Playground
API Documentation
input file: output json
POST
https://api.apyhub.com/ai/video/detect/object/file
Request example
Provider (requested_service) | Atoms |
---|---|
Azure | 500 |
500 |
Method:
POST
Content Type:
multipart/form-data
Request Body
Attribute | Type | Mandatory | Description |
---|---|---|---|
file | file | Yes | the source video file |
requested_service | String | yes | the name of service provider for example azure ,google |
azure_access_token | String | yes (if azure is selected in requested_service) | the access token provided by azure |
azure_account_id | String | yes (if azure is selected in requested_service) | the account id provided by azure |
azure_region | String | yes (if azure is selected in requested_service) | the region provided by azure |
google_credential_file | file | yes (if google is selected in requested_service) | the credential file provided by google it must contain the required Google Credential JSON |
Google Credential JSON
Attribute | Type | Mandatory | Description |
---|---|---|---|
type | String | yes | the type provided by google in credential json file |
project_id | String | yes | the project_id provided by google in credential json file |
private_key_id | String | yes | the private_key_id provided by google in credential json file |
private_key | String | yes | the private_key provided by google in credential json file |
client_email | String | yes | the client_email provided by google in credential json file |
client_id | String | yes | the client_id provided by google in credential json file |
auth_uri | String | yes | the auth_uri provided by google in credential json file |
token_uri | String | yes | the token_uri provided by google in credential json file |
auth_provider_x509_cert_url | String | yes | the auth_provider_x509_cert_url provided by google in credential json file |
client_x509_cert_url | String | yes | the client_x509_cert_url provided by google in credential json file |
universe_domain | String | yes | the universe_domain provided by google in credential json file |
Size And Limits
requested_service | Support matrix and limitations |
---|---|
* Supported Formats .MOV .MPEG4 .MP4 .AVI * the file size limit is 1 GB. | |
Azure | * Supported Formats FLV (with H.264 and AAC codecs) (.flv) MXF (.mxf) GXF (.gxf) MPEG2-PS, MPEG2-TS, 3GP (.ts, .ps, .3gp, .3gpp, .mpg) Windows Media Video (WMV)/ASF (.wmv, .asf) AVI (Uncompressed 8bit/10bit) (.avi) MP4 (.mp4, .m4a, .m4v)/ISMV (.isma, .ismv) Microsoft Digital Video Recording (DVR-MS) (.dvr-ms) Matroska/WebM (.mkv) WAVE/WAV (.wav) QuickTime (.mov) * the file size limit is 1 GB. |
Sample Response
A successful request returns the object detection response in the output parameter specified. If the request fails, the response contains an error code and a message to help determine what went wrong.
HTTP Response Codes
The method may return one of the following HTTP status codes:
Status Code | Description |
---|---|
200 | The request was successful. |
400 | Invalid input - the file is corrupt or the supported inputs are not provided. |
401 | Required authentication information is either missing or not valid for the resource. |
500 | If any unexpected error occurs while processing the request. |
Authentication
All API requests to ApyHub services need to be authenticated. Currently we support
tokens
or basic authentication
mechanisms.
You can generate and view your existing credentials from your workspace settings (on the left side of the navbar) and go to “API Keys".Points to note:
- Credential secrets are generated on the fly and are not stored in plain text, so on generating a credential please save the secrets somewhere safe.
- Use the
apy-token
as the header parameter to pass the token. - Use the
Authorization
header to send the basic authentication credentials.
Error codes
To search for a specific error code, enter the code in the search box below. Alternatively, you can click on the button to view a complete list of all error codes.
Table of contents