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

Skin analyze Advanced

开发环境
开发环境
POST
/api/portrait/analysis/skin-analysis-advanced
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST '/api/portrait/analysis/skin-analysis-advanced' \
--header 'ailabapi-api-key;' \
--form 'image=@""' \
--form 'face_quality_control=""' \
--form 'return_rect_confidence=""' \
--form 'return_maps=""'
响应示例响应示例
{
  "error_code": 0,
  "error_code_str": "",
  "error_msg": "",
  "request_id": "",
  "log_id": "",
  "warning": [],
  "face_rectangle": {
    "top": 0,
    "left": 0,
    "width": 0,
    "height": 0
  },
  "result": {
    "skin_color": {
      "value": 0,
      "confidence": 0.89
    },
    "skin_age": {
      "value": 9
    },
    "left_eyelids": {
      "value": 0,
      "confidence": 0.89
    },
    "right_eyelids": {
      "value": 0,
      "confidence": 0.89
    },
    "eye_pouch": {
      "value": 0,
      "confidence": 0.89
    },
    "dark_circle": {
      "value": 0,
      "confidence": 0.89
    },
    "forehead_wrinkle": {
      "value": 0,
      "confidence": 0.89
    },
    "crows_feet": {
      "value": 0,
      "confidence": 0.89
    },
    "eye_finelines": {
      "value": 0,
      "confidence": 0.89
    },
    "glabella_wrinkle": {
      "value": 0,
      "confidence": 0.89
    },
    "nasolabial_fold": {
      "value": 0,
      "confidence": 0.89
    },
    "skin_type": {
      "skin_type": 0,
      "details": {
        "0": {
          "value": 1,
          "confidence": 0.89
        },
        "1": {
          "value": 1,
          "confidence": 0.89
        },
        "2": {
          "value": 0,
          "confidence": 0.01
        },
        "3": {
          "value": 0,
          "confidence": 0.01
        }
      }
    },
    "pores_forehead": {
      "value": 0,
      "confidence": 1
    },
    "pores_left_cheek": {
      "value": 0,
      "confidence": 1
    },
    "pores_right_cheek": {
      "value": 0,
      "confidence": 1
    },
    "pores_jaw": {
      "value": 0,
      "confidence": 1
    },
    "blackhead": {
      "value": 0,
      "confidence": 1
    },
    "acne": {
      "rectangle": [
        {
          "width": 3,
          "top": 17,
          "height": 1,
          "left": 35
        },
        {
          "width": 4,
          "top": 20,
          "height": 1,
          "left": 35
        }
      ]
    },
    "closed_comedones": {
      "rectangle": [
        {
          "width": 3,
          "top": 17,
          "height": 1,
          "left": 35
        },
        {
          "width": 4,
          "top": 20,
          "height": 1,
          "left": 35
        }
      ]
    },
    "mole": {
      "rectangle": [
        {
          "width": 3,
          "top": 17,
          "height": 1,
          "left": 35
        },
        {
          "width": 4,
          "top": 20,
          "height": 1,
          "left": 35
        }
      ]
    },
    "skin_spot": {
      "rectangle": [
        {
          "width": 3,
          "top": 17,
          "height": 1,
          "left": 35
        },
        {
          "width": 4,
          "top": 20,
          "height": 1,
          "left": 35
        }
      ]
    }
  }
}

请求参数

Header 参数
ailabapi-api-key
string 
必需
Application API KEY.
Body 参数multipart/form-data
image
file 
必需
Main Image.
face_quality_control
string 
必需
Whether to restrict the quality of faces in incoming images.
return_rect_confidence
string 
必需
The confidence level of the area whether to return acne, occlusion, blemishes and moles.
return_maps
string 
必需
The type of skin problem detection mapping image to be returned. If the corresponding element parameter is passed in, the interface will return an image of the original size, which you can subsequently overlay with the original image to see the results. Use commas to separate multiple types.

返回响应

⚪0Skin analyze Advanced
application/json
Body
error_code
integer 
必需
error_code_str
string 
必需
error_msg
string 
必需
request_id
string 
必需
log_id
string 
必需
warning
array
必需
face_rectangle
object 
必需
top
integer 
必需
left
integer 
必需
width
integer 
必需
height
integer 
必需
result
object 
必需
skin_color
object 
必需
skin_age
object 
必需
left_eyelids
object 
必需
right_eyelids
object 
必需
eye_pouch
object 
必需
dark_circle
object 
必需
forehead_wrinkle
object 
必需
crows_feet
object 
必需
eye_finelines
object 
必需
glabella_wrinkle
object 
必需
nasolabial_fold
object 
必需
skin_type
object 
必需
pores_forehead
object 
必需
pores_left_cheek
object 
必需
pores_right_cheek
object 
必需
pores_jaw
object 
必需
blackhead
object 
必需
acne
object 
必需
closed_comedones
object 
必需
mole
object 
必需
skin_spot
object 
必需
上一页
Skin analyze
下一页
Skin analyze Pro
Built with