Detect faces in images and get landmark information
| Legacy Parameter | New Parameter | Notes |
|---|---|---|
image_url | url | Renamed |
img | img | Same |
single_face | single_face | Same |
| - | num_frames | New: for video support |
| - | return_face_url | New: get cropped face URLs |
faces_obj object keyed by frame index. For images, use faces_obj["0"] to access the face data.true to return only the largest face data, or false to return all detected faces. This parameter controls whether the API returns data for multiple faces or just the most prominent one.landmarks_str value from the response should be used as the opts parameter in Face Swap APIsopts parameter)| Error Code | Description |
|---|---|
| 0 | Success |
| Other | Check error_msg for details |
Your API Key used for request authorization.
Set to true to return only the largest face data, or false to return all detected faces.
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.
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