please select
Beauty AR
  • Overview
  • Web
    • Quick Start
    • Integration
      • Overview
      • Built-in Camera
      • Custom Stream
      • Loading Optimization
      • Configuring Effects
      • Configuring Segmentation
      • Configuring Animojis and Virtual Avatars
    • API Document
    • Release Notes
    • Best Practices
      • Publishing over WebRTC
      • Publishing over WebRTC (Preinitialization)
      • Publishing Using TRTC
    • FAQs
  • Android
    • Integration
      • Integrating SDK
      • Integrating TEBeautyKit
    • API Document
    • Release Notes
    • Best Practices
      • Reducing SDK Size
      • Effect Parameters
    • Advanced Capabilities
      • Gesture Recognition
      • Face Recognition
      • Virtual Background
    • Material Production
      • Beauty AR Studio Introduction
    • FAQs
  • IOS
    • Integration
      • Integrating SDK
      • Integrating TEBeautyKit
    • API Document
    • Release Notes
    • Best Practices
      • Reducing SDK Size
      • Effect Parameters
    • Advanced Capabilities
      • Gesture Recognition
      • Face Recognition
      • Virtual Background
    • Material Production
      • Beauty AR Studio Introduction
    • FAQs
  • Flutter
    • Integration
    • API Document
    • Material Production
      • Beauty AR Studio Introduction
  • Overview
    • Overview
  • Activate the Service
  • Pricing
  • Free Trial
    • Web
    • Mobile
Beauty AR

Effect Parameters

When you use the setEffect function to update the beauty effect, you can refer to the following parameter table. The effectName constant in the parameter table is defined in the XmagicConstant.java file in Android and in the XmagicConstant.h file in iOS.

Beauty, Body Shaping




effectName

effectValue

resourcePath

Constant Name

Constant Value

Effect Strength

Resource Path

Beauty Effect
Brighten
BEAUTY_WHITEN
beauty.lutFoundationAlpha
0~100
NA
Brighten 2
BEAUTY_WHITEN2
beauty.lutFoundationAlpha2
0~100
NA
Brighten 3
BEAUTY_WHITEN3
beauty.lutFoundationAlpha3
0~100
NA
Smooth skin
BEAUTY_SMOOTH
smooth.smooth
0~100
NA
Rosy skin
BEAUTY_ROSY
smooth.rosy
0~100
NA
Image Quality
Adjustment
Contrast
BEAUTY_CONTRAST
beauty.imageContrastAlpha
-100~100
NA
Saturation
BEAUTY_SATURATION
smooth.saturation
-100~100
NA
Sharpness
BEAUTY_CLEAR
beauty.lutClearAlpha
0~100
NA
Sharpen
BEAUTY_SHAPE
smooth.sharpen
0~100
NA
Denoise
(V3.6.0)
BEAUTY_IMAGE_DENOISE
postEffect.denoise
0~100
NA
Warmth
BEAUTY_IMAGE_WARMTH
beauty.imageWarmth
-100~100
NA
Tint
BEAUTY_IMAGE_TINT
beauty.imageTint
-100~100
NA
Face Shaping
Big eyes
BEAUTY_ENLARGE_EYE
basicV7.enlargeEye
0~100
NA
Bright eyes
BEAUTY_EYE_LIGHTEN
beauty.eyeLighten
0~100
NA
Eye distance
BEAUTY_EYE_DISTANCE
basicV7.eyeDistance
-100~100
NA
Eye corners
BEAUTY_EYE_ANGLE
basicV7.eyeAngle
-100~100
NA
Eye width
BEAUTY_EYE_WIDTH
basicV7.eyeWidth
-100~100
NA
Eye height
BEAUTY_EYE_HEIGHT
basicV7.eyeHeight
-100~100
NA
Eye bags
BEAUTY_FACE_REMOVE_EYE_BAGS
beauty.removeEyeBags
0~100
NA
Angle of eyebrows
BEAUTY_EYEBROW_ANGLE
basicV7.eyebrowAngle
-100~100
NA
Eyebrow distance
BEAUTY_EYEBROW_DISTANCE
basicV7.eyebrowDistance
-100~100
NA
Eyebrow height
BEAUTY_EYEBROW_HEIGHT
basicV7.eyebrowHeight
-100~100
NA
Eyebrow length
BEAUTY_EYEBROW_LENGTH
basicV7.eyebrowLength
-100~100
NA
Thickness of the eyebrows
BEAUTY_EYEBROW_THICKNESS
basicV7.eyebrowThickness
-100~100
NA
Eyebrow ridge
BEAUTY_EYEBROW_RIDGE
basicV7.eyebrowRidge
-100~100
NA
thin Nose
BEAUTY_NOSE_THIN
basicV7.thinNose
0~100
NA
Nose wings
BEAUTY_NOSE_WING
basicV7.noseWing
-100~100
NA
Nose position
BEAUTY_NOSE_HEIGHT
basicV7.noseHeight
-100~100
NA
Nasal bridge
BEAUTY_NOSE_BRIDGE_WIDTH
basicV7.noseBridgeWidth
-100~100
NA
Mountain Root
BEAUTY_NASION
basicV7.nasion
-100~100
NA
White teeth
BEAUTY_TOOTH_WHITEN
beauty.toothWhiten
0~100
NA
Mouth Shape
BEAUTY_MOUTH_SIZE
basicV7.mouthSize
-100~100
NA
Lip height
BEAUTY_MOUTH_HEIGHT
basicV7.mouthHeight
-100~100
NA
Lip Width
BEAUTY_MOUTH_WIDTH
basicV7.mouthWidth
-100~100
NA
Lip position
BEAUTY_MOUTH_POSITION
basicV7.mouthPosition
-100~100
NA
Smiling lips
BEAUTY_SMILE_FACE
basicV7.smileFace
-100~100
NA
Face width
BEAUTY_FACE_THIN
basicV7.thinFace
0~100
NA
Slim face - Natural
BEAUTY_FACE_NATURE
basicV7.natureFace
0~100
NA
Slim face-Goddess
BEAUTY_FACE_GODNESS
basicV7.godnessFace
0~100
NA
Slim face- Handsome
BEAUTY_FACE_MALE_GOD
basicV7.maleGodFace
0~100
NA
V-shaped face
BEAUTY_FACE_V
basicV7.vFace
0~100
NA
Slim jaw
BEAUTY_FACE_JAW
basicV7.faceJaw
0~100
NA
Short Face
BEAUTY_FACE_SHORT
basicV7.shortFace
0~100
NA
Face shape
BEAUTY_FACE_BASIC
liquefaction.basic3
0~100
NA
Chin
BEAUTY_FACE_THIN_CHIN
basicV7.chin
-100~100
NA
Forehead
BEAUTY_FACE_FOREHEAD
basicV7.forehead
-100~100
NA
Wrinkle Removal
BEAUTY_FACE_REMOVE_WRINKLE
beauty.removeWrinkle
0~100
NA
Eliminate Nasolabial Folds
BEAUTY_FACE_REMOVE_LAW_LINE
beauty.removeLawLine
0~100
NA
Cheekbones
BEAUTY_FACE_THIN_CHEEKBONE
basicV7.cheekboneThin
0~100
NA
Makeup
Lipstick
BEAUTY_MOUTH_LIPSTICK
beauty.faceFeatureLipsLut
0~100
Example: /images/beauty/lips_fuguhong.png
Blush
BEAUTY_FACE_RED_CHEEK
beauty.faceFeatureRedCheek
0~100
Example: /images/beauty/saihong_jianyue.png
Contour
BEAUTY_FACE_SOFTLIGHT
beauty.faceFeatureSoftlight
0~100
Example: /images/beauty/literary_nature.png
Eyeshadow
BEAUTY_FACE_EYE_SHADOW
beauty.faceFeatureEyesMakeup.eyeShadow
0~100
Example: /images/beauty/eyes_makeup_eye_shadow_0-albatross.png
Eyeliner
BEAUTY_FACE_EYE_LINER
beauty.faceFeatureEyesMakeup.eyeLiner
0~100
Example: /images/beauty/eyes_makeup_eye_liner_0.png
Eyelashes
BEAUTY_FACE_EYELASH
beauty.faceFeatureEyesMakeup.eyelash
0~100
Example: /images/beauty/eyes_makeup_eyelash_0.png
Eyebrows
BEAUTY_FACE_EYEBROW
beauty.faceFeatureEyesMakeup.eyebrow
0~100
For instance: /images/beauty/eyes_makeup_eyebrow_0.png
Colored Contacts
BEAUTY_FACE_EYEBALL
beauty.faceFeatureEyesMakeup.eyeball
0~100
Example: /images/beauty/eyes_makeup_eyeball_0.png
Body Shaping
One-click slimming
BODY_AUTOTHIN_BODY_STRENGTH
body.autothinBodyStrength
0~100
NA
Long legs
BODY_LEG_STRETCH
body.legStretch
0~100
NA
Thin legs
BODY_SLIM_LEG_STRENGTH
body.slimLegStrength
0~100
NA
Slim waist
BODY_WAIST_STRENGTH
body.waistStrength
0~100
NA
Slim shoulders
BODY_THIN_SHOULDER_STRENGTH
body.thinShoulderStrength
0~100
NA
Chest Adjustment
BODY_ENLARGE_CHEST_STRENGTH
body.enlargeChestStrength
-100~100
NA
Small head
BODY_SLIM_HEAD_STRENGTH
body.slimHeadStrength
0~100
NA

Filters, Cosmetics, Motion Effects, Segmentation



effectName

effectValue

resourcePath

extraInfo

Constant Name

Constant Value

Effect Strength

Resource Path

Extra Info

(key value)
Filter
EFFECT_LUT
lut
0-100
Example: /data/user/0/xxx/lut/aiqing_lf.png If you wish to cancel the filter, enter null here
NA
Makeup
EFFECT_MAKEUP
makeup
0-100
Absolute path to beauty materials on the mobile phone. To cancel beauty makeup, fill in 'null' here
[Optional]makeupLutStrength
makeup material lut filter strength,value range:"0"~"100" [Optional]mergeWithCurrntMotion
"true" or "false", indicates whether merge on the current motion. Default value is false
Motion
EFFECT_MOTION
motion
NA
Example: /data/user/0/xxx/motion/video_keaituya If you wish to cancel the motion effect, fill in 'null' here
[Optional] mergeWithCurrentMotion
"true" or "false", indicates whether merge on the current motion. Default value is false
Segmentation
(Normal)
EFFECT_SEGMENTATION
segmentation
NA
The absolute path of the background segmentation material. If you want to cancel the segmentation, fill in null here
[Optional] mergeWithCurrentMotion "true" or "false", indicates whether merge on the current motion. Default value is false
Segmentation
(GreenScreen)
EFFECT_SEGMENTATION
segmentation
NA
The absolute path of the background segmentation material. If you want to cancel the segmentation, fill in null here.
[Required]segType:"green_background" [Required]bgType:
custom background type,"0" is photo or pag,"1" is video. [Required]bgPath: custom background photo or video's file path. [Optional] keyColor:green screen color key, RGB as "#0x00ff00" [Optional] mergeWithCurrentMotion:
"true" or "false", indicates whether merge on the current motion. Default value is false
Segmentation
(Custom)
EFFECT_SEGMENTATION
segmentation
NA
The absolute path of the background segmentation material. If you want to cancel the segmentation, fill in null here.
[Required]segType: "custom_background" [Required]bgType: custom background type,"0" is photo or pag,"1" is video. [Required]bgPath: custom background photo or video's file path. [Optional]mergeWithCurrentMotion: "true" or "false", indicates whether merge on the current motion. Default value is false