Important Notes
- single_face: Set to
trueto return only the largest face data, orfalseto return all detected faces. This parameter controls whether the API returns data for multiple faces or just the most prominent one. - image_url or img: You can choose to enter either the image URL or the base64 encoded image data
- The
landmarks_strvalue from the response should be used as theoptsparameter in Face Swap APIs
Response Fields
- landmarks: Array of face landmark coordinates
- landmarks_str: String representation of landmarks (use this for
optsparameter) - region: Face region bounding box coordinates
- seconds: API processing time
- trx_id: Transaction ID for tracking
Face Detect Response Code
| Error Code | Description |
|---|---|
| 0 | Success |
| Other | Check error_msg for details |
Authorizations
Your API Key used for request authorization. If both Authorization and x-api-key have values, Authorization will be used first and x-api-key will be discarded.
Body
Set to true to return only the largest face data, or false to return all detected faces. When true, the API will detect all faces but only return data for the most prominent (largest) face.
Image link. You can choose to enter this parameter or the img parameter.
Image base64 information. You can choose to enter this parameter or the image_url parameter.
Response
Face detection completed
Interface returns business status code (0: success)
Error message of this API
Key point data of face
Landmark string representation
Face region coordinates
API time-consuming
Transaction ID