AILabTools
  1. Portrait Analysis
AILabTools
  • 简介
  • AI IMAGE
    • Image Enhancement
      • Image Dehaze
      • Image Upscaler
      • Stretched Image Restoration
      • Image sharpness enhancement
      • Image contrast enhancement
      • Image color enhancement
    • Image Effects
      • AI Cartoon Generator
      • AI Photo Colorize
      • Photo to Painting
      • Style transfer
      • Color Migration
      • HD color migration
      • Image Micro Motion
    • Image Editing
      • AI Image cropping
      • Intelligent Composition
      • Photo retouch
      • Image Invisible Picture Watermark
      • Image Invisible Text Watermark
      • Image Erasure
    • Image scoring
      • Image composition aesthetics score
      • Image exposure score
    • Querying asynchronous task results
      GET
  • AI BACKGROUND REMOVAL
    • Portrait
      • Human background removal
      • Head Extraction
      • Hairstyle Extraction
    • General
      • Universal Background Removal
      • Food Background Removal
      • Product background removal
      • Costume background removal
  • AI PORTRAIT
    • Portrait effects
      • Cartoon yourself
      • Merge Portraits
      • Smart Beauty
      • AI Skin Beauty
      • AI Face Slimming
      • Face Beauty
      • AI Makeup
      • Face Filters
      • Facial aesthetics
      • Change facial expressions
      • Hairstyle changer
      • Hairstyle changer Pro
      • Bring photos to life
      • Photo to 3d slow-motion
      • Face Blur
      • Age & Gender swap
      • AI Face Enhancer
      • Lips Color Changer
    • Portrait Analysis
      • Face Key Points
        POST
      • Detect Skin Disease
        POST
      • Skin analyze
        POST
      • Skin analyze Advanced
        POST
      • Skin analyze Pro
        POST
      • Face Analyzer
        POST
  • AI COMMON
    • Querying asynchronous task results
      GET
    • Querying credits
      GET
  1. Portrait Analysis

Face Key Points

开发环境
开发环境
POST
/api/portrait/analysis/face-key-points
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST '/api/portrait/analysis/face-key-points' \
--header 'ailabapi-api-key;' \
--form 'image=@""' \
--form 'max_face_num=""' \
--form 'face_field=""'
响应示例响应示例
0 - landmark4 - landmark4
{
  "error_code": 0,
  "error_msg": "",
  "request_id": "",
  "log_id": "",
  "result": {
    "face_num": "",
    "face_list": [
      {
        "face_token": "",
        "location": {
          "left": 0,
          "top": 0,
          "width": 0,
          "height": 0,
          "rotation": 0
        }
      }
    ],
    "face_probability": 0,
    "angle": [
      {
        "yaw": 0,
        "pitch": 0,
        "roll": 0
      }
    ],
    "age": 0,
    "gender": [
      {
        "type": "",
        "probability": 0
      }
    ],
    "landmark4": [
        {
            "x": 148.37,
            "y": 100.59
        },
        {
            "x": 234.82,
            "y": 90.52
        },
        {
            "x": 199.34,
            "y": 135.81
        },
        {
            "x": 203.17,
            "y": 179.29
        }
    ]
  }
}

请求参数

Header 参数
ailabapi-api-key
string 
必需
Application API KEY.
Body 参数multipart/form-data
image
file 
必需
max_face_num
string 
必需
The maximum number of faces to process. The default value is 1 (only the face with the largest area in the image is detected).
face_field
string 
必需
Returns more information about the face (by default only face_token, face frame, probability and rotation angle are returned).

返回响应

⚪0landmark4
application/json
Body
error_code
integer 
必需
error_msg
string 
必需
request_id
string 
必需
log_id
string 
必需
result
object 
必需
face_num
string 
必需
face_list
array [object {2}] 
必需
face_probability
integer 
必需
angle
array [object {3}] 
必需
age
integer 
必需
gender
array [object {2}] 
必需
landmark4
array [object {2}] 
必需
⚪0landmark72
⚪0landmark150
⚪0landmark201
上一页
Lips Color Changer
下一页
Detect Skin Disease
Built with