About this endpoint
What it does
Uploads an image file and runs human face detection against the selected provider. The response returns a JSON object containing a data object with provider-specific result objects for azure, apyhub, and google.
Request Body
| Parameter | Type | Mandatory | Description |
|---|---|---|---|
| file | String | Yes | Binary file upload. |
| azure_key | String | No | Azure key. |
| google_key | String | No | Google key. |
| azure_region | String | No | Azure region. |
| azure_endpoint | String | No | Azure endpoint. |
| azure_account_id | String | No | Azure account ID. |
| requested_service | ENUM | No | Allowed values: azure, google, apyhub. Default: apyhub. |
| azure_access_token | String | No | Azure access token. |
Response
Returns a JSON object with a data object field. Inside data, the response may include azure, apyhub, and google object fields, each representing the corresponding provider's face-detection response.
| Parameter | Type | Mandatory | Description |
|---|---|---|---|
| data | Object | No | Container for provider-specific results. |
| data.azure | Object | No | Response object from Microsoft Azure Computer Vision. |
| data.apyhub | Object | No | Response object from ApyHub Vision detector. |
| data.google | Object | No | Response object from Google Cloud Vision. |