Face Analyzer Advanced
Face Analyzer Advanced
Face Analyzer Advanced API
Face Analyzer Advanced API detects facial attributes and quality metrics, including age, gender, expression, pose, blur, and occlusion.
POST
Face Analyzer Advanced
AILabTools API - Face Analyzer Advanced - API
Request
- URL:
https://www.ailabapi.com/api/portrait/analysis/face-analyzer-advanced - Method:
POST - Content-Type:
multipart/form-data
Image requirements
- Image format:
JPGJPEGPNGBMP - Image size: No more than 20 MB.
- Image resolution: Larger than 32×32px, smaller than 4096×4096px, face no smaller than 64×64px.
Headers
| Field | Required | Type | Description |
|---|---|---|---|
ailabapi-api-key | YES | string | Application API KEY. Get API KEY |
Body
| Field | Required | Type | |
|---|---|---|---|
image | YES | file |
Response
Public Response Fields
Viewing Public Response Fields and Error CodesBusiness Response Fields
| Field | Type | Scope | Description |
|---|---|---|---|
data | object | ||
+pupils | array of float | The center point coordinates and radius of the left and right pupils, with 6 floating-point values per face, in the order of [left_iris_cenpt.x, left_iris_cenpt.y, left_iris_radius, right_iris_cenpt.x, right_iris_cenpt.y, right_iris_radius]. If multiple faces are detected, results are returned in order. | |
+gender_list | array of integer | 01 | Gender. If multiple faces are detected, results are returned in order. 0: Female.1: Male. |
+expressions | array of integer | 01 | Expression. If multiple faces are detected, results are returned in order. 0: Neutral.1: Smile. |
+face_count | integer | Number of faces. | |
+landmarks | array of float | Facial landmark detection results. A set of landmark coordinates is returned for each face, represented as (x0, y0, x1, y1, …). If multiple faces are detected, results are returned in order. | |
+landmark_count | integer | 105 | Number of facial landmarks. distributed as follows: |
+beauty_list | array of float | [0, 100] | Attractiveness score. A higher score indicates a higher level of attractiveness. If multiple faces are detected, results are returned in order. |
+hat_list | array of integer | 01 | Whether wearing a hat. If multiple faces are detected, results are returned in order. 0: No.1: Yes. |
+face_probability_list | array of float | [0, 1] | Probability of a face. If multiple faces are detected, results are returned in order. |
+glasses | array of integer | 012 | Whether wearing glasses. If multiple faces are detected, results are returned in order. 0: No glasses.1: Wearing regular glasses.2: Wearing sunglasses. |
+face_rectangles | array of integer | Face bounding box, represented as [left, top, width, height]. If multiple faces are detected, results are returned in order. | |
+pose_list | array of float | Face pose, in the format [yaw, pitch, roll]. If multiple faces are detected, results are returned in order. yaw: left-right angle. Range: [-90, 90].pitch: up-down angle. Range: [-90, 90].roll: in-plane rotation angle. Range: [-180, 180]. | |
+age_list | array of integer | [0, 100] | Age. If multiple faces are detected, results are returned in order. |
+dense_feature_length | integer | 1024 | The feature dimension returned by face recognition. |
+masks | array of integer | 012 | Whether wearing a mask. If multiple faces are detected, results are returned in order. 0: No.1: Yes.2: Mask worn incorrectly. |
+qualities | object | Face quality score, where a higher score indicates better suitability for recognition. | |
++score_list | array of float | [0, 100] | Overall quality score, where a higher score indicates better suitability for recognition. It is recommended to set a threshold of ≥85 during recognition: a score above 85 indicates high overall image quality, while a score below 85 indicates lower overall image quality. If multiple faces are detected, results are returned in order. |
++blur_list | array of float | [0, 100] | Face blur score indicating the impact of blurriness on recognition, where a higher score is more favorable for recognition. It is recommended to set a threshold of ≥85 during recognition: a score above 85 indicates a lower likelihood of the image being blurry, while a score below 85 indicates a higher likelihood of blurriness. If multiple faces are detected, results are returned in order. |
++fnf_list | array of float | [0, 100] | Score indicating whether the target is a face and its impact on recognition, where a higher score is more favorable for recognition. It is recommended to set a threshold of ≥85 during recognition: a score above 85 indicates a higher probability that the image is a face, while a score below 85 indicates a lower probability. If multiple faces are detected, results are returned in order. |
++glass_list | array of float | [0, 100] | Score indicating the impact of upper-face occlusion (e.g., glasses) on recognition, where a higher score is more favorable for recognition. It is recommended to set a threshold of ≥85 during recognition: a score above 85 indicates a lower probability of wearing glasses, while a score below 85 indicates a higher probability. If multiple faces are detected, results are returned in order. |
++illu_list | array of float | [0, 100] | Score indicating the impact of lighting on recognition, where a higher score is more favorable for recognition. It is recommended to set a threshold of ≥85 during recognition: a score above 85 indicates a higher probability that the image has good lighting, while a score below 85 indicates a lower probability. If multiple faces are detected, results are returned in order. |
++mask_list | array of float | [0, 100] | Score indicating the impact of lower-face occlusion (e.g., mask) on recognition, where a higher score is more favorable for recognition. It is recommended to set a threshold of ≥85 during recognition: a score above 85 indicates a lower probability of wearing a mask, while a score below 85 indicates a higher probability. If multiple faces are detected, results are returned in order. |
++noise_list | array of float | [0, 100] | Score indicating the impact of image noise on recognition, where a higher score is more favorable for recognition. It is recommended to set a threshold of ≥85 during recognition: a score above 85 indicates a lower probability of image noise, while a score below 85 indicates a higher probability. If multiple faces are detected, results are returned in order. |
++pose_list | array of float | [0, 100] | Score indicating the impact of face pose on recognition, where a higher score is more favorable for recognition. It is recommended to set a threshold of ≥85 during recognition: a score above 85 indicates a higher probability of the face being frontal, while a score below 85 indicates a lower probability. If multiple faces are detected, results are returned in order. |

