The ZegoEffects SDK provides various face beautification features that help users look like their best selves on live video, including skin tone enhancement, skin smoothing, cheek blusher, image sharpening, and more.
Prerequisites
Before using the ZegoEffects SDK face beautification features, please ensure:
Integrate the ZegoEffects SDK into your project. For details, see Integrate the SDK.
In general, take the following steps to use a face beautification feature:
Enable the feature.
Specify the parameters of the beautification feature as needed. If not specified, the SDK uses the default settings.
Skin tone enhancement
Use this feature to make the skin tone whiter or tanner.
Warning
To use the skin tone enhancement feature, import the related resource file FaceWhiteningResources first; otherwise, this feature can't take effect. For details, see Import resources and models.
Call the enableWhiten method to enable the skin tone enhancement feature.
The value range of the intensity property of ZegoEffectsWhitenParam is [0, 100], and the default value is 50. As this value gets larger, the skin tone gets whiter.
// Enable the skin tone enhancement feature.
[self.effects enableWhiten:YES];
// Set the whitening intensity. The value range is [0, 100], and the default value is 50.
ZegoEffectsWhitenParam *param = [[ZegoEffectsWhitenParam alloc] init];
param.intensity = 100;
[self.effects setWhitenParam:param];
// Enable the skin tone enhancement feature.
[self.effects enableWhiten:YES];
// Set the whitening intensity. The value range is [0, 100], and the default value is 50.
ZegoEffectsWhitenParam *param = [[ZegoEffectsWhitenParam alloc] init];
param.intensity = 100;
[self.effects setWhitenParam:param];
// Enable the skin tone enhancement feature.
mEffects.enableWhiten(true);
// Set the whitening intensity. The value range is [0, 100], and the default value is 50.
ZegoEffectsWhitenParam param = new ZegoEffectsWhitenParam();
param.intensity = 100;
mEffects.setWhitenParam(param);
// Enable the skin tone enhancement feature.
mEffects.enableWhiten(true);
// Set the whitening intensity. The value range is [0, 100], and the default value is 50.
ZegoEffectsWhitenParam param = new ZegoEffectsWhitenParam();
param.intensity = 100;
mEffects.setWhitenParam(param);
// Enable the skin tone enhancement feature.
ZegoEffectsPlugin.instance.enableWhiten(true);
// Set the enhancement intensity. The value range is [0, 100], and the default value is 50.
ZegoEffectsWhitenParam param = ZegoEffectsWhitenParam();
param.intensity = 100;
ZegoEffectsPlugin.instance.setWhitenParam(param);
// Enable the skin tone enhancement feature.
ZegoEffectsPlugin.instance.enableWhiten(true);
// Set the enhancement intensity. The value range is [0, 100], and the default value is 50.
ZegoEffectsWhitenParam param = ZegoEffectsWhitenParam();
param.intensity = 100;
ZegoEffectsPlugin.instance.setWhitenParam(param);
// Enable skin tone enhancement
mEffects.enableWhiten(true);
// Set enhancement intensity, range [0, 100], default is 50
mEffects.setWhitenParam({ intensity: 100 });
// Enable skin tone enhancement
mEffects.enableWhiten(true);
// Set enhancement intensity, range [0, 100], default is 50
mEffects.setWhitenParam({ intensity: 100 });
Skin smoothing
Call the enableSmooth method to enable the skin smoothing feature.
Call the setSmoothParam method to set the smoothing intensity.
The value range of the intensity property of ZegoEffectsSmoothParam is [0, 100], and the default value is 50. As this value gets larger, the skin looks smoother.
// Enable the skin smoothing feature
[self.effects enableSmooth:YES];
// Set the intensity of skin smoothing. The value range is [0, 100], and the default value is 50.
ZegoEffectsSmoothParam *param = [[ZegoEffectsSmoothParam alloc] init];
param.intensity = 100;
[self.effects setSmoothParam:param];
// Enable the skin smoothing feature
[self.effects enableSmooth:YES];
// Set the intensity of skin smoothing. The value range is [0, 100], and the default value is 50.
ZegoEffectsSmoothParam *param = [[ZegoEffectsSmoothParam alloc] init];
param.intensity = 100;
[self.effects setSmoothParam:param];
// Enable the skin smoothing feature
mEffects.enableSmooth(true);
// Set the indensity of skin smoothing. The value range is [0, 100], and the default value is 50.
ZegoEffectsSmoothParam param = new ZegoEffectsSmoothParam();
param.intensity = 100;
mEffects.setSmoothParam(param);
// Enable the skin smoothing feature
mEffects.enableSmooth(true);
// Set the indensity of skin smoothing. The value range is [0, 100], and the default value is 50.
ZegoEffectsSmoothParam param = new ZegoEffectsSmoothParam();
param.intensity = 100;
mEffects.setSmoothParam(param);
// Enable the skin smoothing feature.
ZegoEffectsPlugin.instance.enableSmooth(true);
// Set the smoothing intensity. The value range is [0, 100], and the default value is 50.
ZegoEffectsSmoothParam param = ZegoEffectsSmoothParam();
param.intensity = 100;
ZegoEffectsPlugin.instance.setSmoothParam(param);
// Enable the skin smoothing feature.
ZegoEffectsPlugin.instance.enableSmooth(true);
// Set the smoothing intensity. The value range is [0, 100], and the default value is 50.
ZegoEffectsSmoothParam param = ZegoEffectsSmoothParam();
param.intensity = 100;
ZegoEffectsPlugin.instance.setSmoothParam(param);
// Enable skin smoothing
mEffects.enableSmooth(true);
// Set smoothing intensity, range [0, 100], default is 50
mEffects.setSmoothParam({ intensity: 100 });
// Enable skin smoothing
mEffects.enableSmooth(true);
// Set smoothing intensity, range [0, 100], default is 50
mEffects.setSmoothParam({ intensity: 100 });
Cheek blusher
Warning
For this feature to work correctly, you need to import the related resource files first. For details, see Import resources and models.
Call the enableRosy method to enable the cheek blusher feature.
Call the setRosyParam method to set the rosy intensity.
The value range of the intensity property of ZegoEffectsRosyParam is [0, 100], and the default value is 50. As this value gets larger, the cheek gets rosier.
// Enable the cheek blusher feature.
[self.effects enableRosy:YES];
// Set the blusher intensity. The value range is [0, 100], and the default value is 50.
ZegoEffectsRosyParam *param = [[ZegoEffectsRosyParam alloc] init];
param.intensity = 100;
[self.effects setRosyParam:param];
// Enable the cheek blusher feature.
[self.effects enableRosy:YES];
// Set the blusher intensity. The value range is [0, 100], and the default value is 50.
ZegoEffectsRosyParam *param = [[ZegoEffectsRosyParam alloc] init];
param.intensity = 100;
[self.effects setRosyParam:param];
// Enable the cheek blusher feature
mEffects.enableRosy(true)
// Set the blusher intensity. The value range is [0, 100], and the default value is 50.
ZegoEffectsRosyParam param = new ZegoEffectsRosyParam();
param.intensity = 100;
mEffects.setRosyParam(param);
// Enable the cheek blusher feature
mEffects.enableRosy(true)
// Set the blusher intensity. The value range is [0, 100], and the default value is 50.
ZegoEffectsRosyParam param = new ZegoEffectsRosyParam();
param.intensity = 100;
mEffects.setRosyParam(param);
// Enable the cheek blusher feature.
ZegoEffectsPlugin.instance.enableRosy(true);
// Set the blusher intensity. The value range is [0, 100], and the default value is 50.
ZegoEffectsRosyParam param = ZegoEffectsRosyParam();
param.intensity = 100;
ZegoEffectsPlugin.instance.setRosyParam(param);
// Enable the cheek blusher feature.
ZegoEffectsPlugin.instance.enableRosy(true);
// Set the blusher intensity. The value range is [0, 100], and the default value is 50.
ZegoEffectsRosyParam param = ZegoEffectsRosyParam();
param.intensity = 100;
ZegoEffectsPlugin.instance.setRosyParam(param);
// Enable cheek blusher
mEffects.enableRosy(true);
// Set blusher intensity, range [0, 100], default is 50
mEffects.setRosyParam({ intensity: 100 });
// Enable cheek blusher
mEffects.enableRosy(true);
// Set blusher intensity, range [0, 100], default is 50
mEffects.setRosyParam({ intensity: 100 });
Image sharpening
Call the enableSharpen method to enable the image sharpening feature.
Call the setSharpenParam method to set the sharpening strength.
The value range of the intensity property of ZegoEffectsSharpenParam is [0, 100], and the default value is 50. As this value gets larger, the image looks sharper.
// Enable the image sharpening feature.
[self.effects enableSharpen:YES];
// Set the sharpening intensity. The value range is [0, 100], and the default value is 50.
ZegoEffectsSharpenParam *param = [[ZegoEffectsSharpenParam alloc] init];
param.intensity = 100;
[self.effects setSharpenParam:param];
// Enable the image sharpening feature.
[self.effects enableSharpen:YES];
// Set the sharpening intensity. The value range is [0, 100], and the default value is 50.
ZegoEffectsSharpenParam *param = [[ZegoEffectsSharpenParam alloc] init];
param.intensity = 100;
[self.effects setSharpenParam:param];
// Enable the image sharpening feature
mEffects.enableSharpen(true);
// Set the sharpening intensity. The value range is [0, 100], and the default value is 50.
ZegoEffectsSharpenParam param = new ZegoEffectsSharpenParam();
param.intensity = 100;
mEffects.setSharpenParam(param);
// Enable the image sharpening feature
mEffects.enableSharpen(true);
// Set the sharpening intensity. The value range is [0, 100], and the default value is 50.
ZegoEffectsSharpenParam param = new ZegoEffectsSharpenParam();
param.intensity = 100;
mEffects.setSharpenParam(param);
// Enable the image sharpening feature.
ZegoEffectsPlugin.instance.enableSharpen(true);
// Set the sharpening intensity. The value range is [0, 100], and the default value is 50.
ZegoEffectsSharpenParam param = ZegoEffectsSharpenParam();
param.intensity = 100;
ZegoEffectsPlugin.instance.setSharpenParam(param);
// Enable the image sharpening feature.
ZegoEffectsPlugin.instance.enableSharpen(true);
// Set the sharpening intensity. The value range is [0, 100], and the default value is 50.
ZegoEffectsSharpenParam param = ZegoEffectsSharpenParam();
param.intensity = 100;
ZegoEffectsPlugin.instance.setSharpenParam(param);
// Enable image sharpening
mEffects.enableSharpen(true);
// Set sharpening intensity, range [0, 100], default is 50
mEffects.setSharpenParam({ intensity: 100 });
// Enable image sharpening
mEffects.enableSharpen(true);
// Set sharpening intensity, range [0, 100], default is 50
mEffects.setSharpenParam({ intensity: 100 });
The value range of the intensity property of ZegoEffectsWrinklesRemovingParam is [0, 100], and the default value is 50. As this value gets larger, the more thoroughly the nasolabial folds are removed.
// Enable the nasolabial folds removing feature.
[self.effects enableWrinklesRemoving:YES];
// Set the instensity, the value range is [0, 100], and the default value is 50.
ZegoEffectsWrinklesRemovingParam *param = [[ZegoEffectsWrinklesRemovingParam alloc] init];
param.intensity = 100;
[self.effects setWrinklesRemovingParam:param];
// Enable the nasolabial folds removing feature.
[self.effects enableWrinklesRemoving:YES];
// Set the instensity, the value range is [0, 100], and the default value is 50.
ZegoEffectsWrinklesRemovingParam *param = [[ZegoEffectsWrinklesRemovingParam alloc] init];
param.intensity = 100;
[self.effects setWrinklesRemovingParam:param];
// Enable the nasolabial folds removing feature.
mEffects.enableWrinklesRemoving(true);
// Set the instensity, the value range is [0, 100], and the default value is 50.
ZegoEffectsWrinklesRemovingParam param = new ZegoEffectsWrinklesRemovingParam ();
param.intensity = 100;
mEffects.setWrinklesRemovingParam(param);
// Enable the nasolabial folds removing feature.
mEffects.enableWrinklesRemoving(true);
// Set the instensity, the value range is [0, 100], and the default value is 50.
ZegoEffectsWrinklesRemovingParam param = new ZegoEffectsWrinklesRemovingParam ();
param.intensity = 100;
mEffects.setWrinklesRemovingParam(param);
// Enable the nasolabial folds removing feature.
ZegoEffectsPlugin.instance.enableWrinklesRemoving(true);
// Set the wrinkles removing intensity. The value range is [0, 100], and the default value is 50.
ZegoEffectsWrinklesRemovingParam param = ZegoEffectsWrinklesRemovingParam();
param.intensity = 100;
ZegoEffectsPlugin.instance.setWrinklesRemovingParam(param);
// Enable the nasolabial folds removing feature.
ZegoEffectsPlugin.instance.enableWrinklesRemoving(true);
// Set the wrinkles removing intensity. The value range is [0, 100], and the default value is 50.
ZegoEffectsWrinklesRemovingParam param = ZegoEffectsWrinklesRemovingParam();
param.intensity = 100;
ZegoEffectsPlugin.instance.setWrinklesRemovingParam(param);
// Enable nasolabial fold removal feature
mEffects.enableWrinklesRemoving(true);
// Set the degree of nasolabial fold removal, range [0, 100], default is 50
mEffects.setWrinklesRemovingParam({ intensity: 100 });
// Enable nasolabial fold removal feature
mEffects.enableWrinklesRemoving(true);
// Set the degree of nasolabial fold removal, range [0, 100], default is 50
mEffects.setWrinklesRemovingParam({ intensity: 100 });
The value range of the intensity property of the ZegoEffectsDarkCirclesRemovingParam is [0, 100], and the default value is 50. As this value gets larger, the more thoroughly the dark circles are removed.
// Enable the dark circles removing feature.
[self.effects enableDarkCirclesRemoving:YES];
// Set the instensity, the value range is [0, 100], and the default value is 50.
ZegoEffectsDarkCirclesRemovingParam *param = [[ZegoEffectsDarkCirclesRemovingParam alloc] init];
param.intensity = 100;
[self.effects setDarkCirclesRemovingParam:param];
// Enable the dark circles removing feature.
[self.effects enableDarkCirclesRemoving:YES];
// Set the instensity, the value range is [0, 100], and the default value is 50.
ZegoEffectsDarkCirclesRemovingParam *param = [[ZegoEffectsDarkCirclesRemovingParam alloc] init];
param.intensity = 100;
[self.effects setDarkCirclesRemovingParam:param];
// Enable the dark circles removing feature.
mEffects.enableDarkCirclesRemoving(true);
// Set the instensity, the value range is [0, 100], and the default value is 50.
ZegoEffectsDarkCirclesRemovingParam param = new ZegoEffectsDarkCirclesRemovingParam ();
param.intensity = 100;
mEffects.setDarkCirclesRemovingParam(param);
// Enable the dark circles removing feature.
mEffects.enableDarkCirclesRemoving(true);
// Set the instensity, the value range is [0, 100], and the default value is 50.
ZegoEffectsDarkCirclesRemovingParam param = new ZegoEffectsDarkCirclesRemovingParam ();
param.intensity = 100;
mEffects.setDarkCirclesRemovingParam(param);
// Enable the dark circles removing feature.
ZegoEffectsPlugin.instance.enableDarkCirclesRemoving(true);
// Set the dark circles removing intensity. The value range is [0, 100], and the default value is 50.
ZegoEffectsDarkCirclesRemovingParam param = ZegoEffectsDarkCirclesRemovingParam();
param.intensity = 100;
ZegoEffectsPlugin.instance.setDarkCirclesRemovingParam(param);
// Enable the dark circles removing feature.
ZegoEffectsPlugin.instance.enableDarkCirclesRemoving(true);
// Set the dark circles removing intensity. The value range is [0, 100], and the default value is 50.
ZegoEffectsDarkCirclesRemovingParam param = ZegoEffectsDarkCirclesRemovingParam();
param.intensity = 100;
ZegoEffectsPlugin.instance.setDarkCirclesRemovingParam(param);
// Enable dark circles removal feature
mEffects.enableDarkCirclesRemoving(true);
// Set the degree of dark circles removal, range [0, 100], default is 50
mEffects.setDarkCirclesRemovingParam({ intensity: 100 });
// Enable dark circles removal feature
mEffects.enableDarkCirclesRemoving(true);
// Set the degree of dark circles removal, range [0, 100], default is 50
mEffects.setDarkCirclesRemovingParam({ intensity: 100 });
Acne and Spot Removal
Call the enableAcneRemoving method to enable the acne and spot removal feature, and use the setAcneRemovingParam method to set the intensity of the acne and spot removal.
The value range of the "intensity" parameter in the ZegoEffectsAcneRemovingParam object is [0, 100], with a default value of "0". A larger value indicates a stronger acne and spot removal effect. Developers can customize the value according to their needs.
// Enable acne and spot removal
[self.effects enableAcneRemoving:YES];
// Set the intensity of acne and spot removal, range [0, 100], default is 0
ZegoEffectsAcneRemovingParam *param = [[ZegoEffectsAcneRemovingParam alloc] init];
param.intensity = 0;
[self.effects setAcneRemovingParam:param];
// Enable acne and spot removal
[self.effects enableAcneRemoving:YES];
// Set the intensity of acne and spot removal, range [0, 100], default is 0
ZegoEffectsAcneRemovingParam *param = [[ZegoEffectsAcneRemovingParam alloc] init];
param.intensity = 0;
[self.effects setAcneRemovingParam:param];
// Enable acne and spot removal
mEffects.enableAcneRemoving(true);
// Set the intensity of acne and spot removal, range [0, 100], default is 0
ZegoEffectsAcneRemovingParam param = new ZegoEffectsAcneRemovingParam();
param.intensity = 0;
mEffects.setAcneRemovingParam(param);
// Enable acne and spot removal
mEffects.enableAcneRemoving(true);
// Set the intensity of acne and spot removal, range [0, 100], default is 0
ZegoEffectsAcneRemovingParam param = new ZegoEffectsAcneRemovingParam();
param.intensity = 0;
mEffects.setAcneRemovingParam(param);
// Enable acne and spot removal
ZegoEffectsPlugin.instance.enableAcneRemoving(true);
// Set the intensity of acne and spot removal, range [0, 100], default is 0
ZegoEffectsAcneRemovingParam param = ZegoEffectsAcneRemovingParam();
param.intensity = 100;
ZegoEffectsPlugin.instance.setAcneRemovingParam(param);
// Enable acne and spot removal
ZegoEffectsPlugin.instance.enableAcneRemoving(true);
// Set the intensity of acne and spot removal, range [0, 100], default is 0
ZegoEffectsAcneRemovingParam param = ZegoEffectsAcneRemovingParam();
param.intensity = 100;
ZegoEffectsPlugin.instance.setAcneRemovingParam(param);
// Enable acne and freckles removal feature
mEffects.enableAcneRemoving(true);
// Set the degree of acne and freckles removal, range [0, 100], default is 0
mEffects.setAcneRemovingParam({ intensity: 100 });
// Enable acne and freckles removal feature
mEffects.enableAcneRemoving(true);
// Set the degree of acne and freckles removal, range [0, 100], default is 0
mEffects.setAcneRemovingParam({ intensity: 100 });
Clarity Enhancement
Warning
Before using the clarity enhancement feature, please import the corresponding "ClarityResources" resource files, otherwise the feature will not work. For details, please refer to Quick Starts - Import Resources and Models.
Call the enableClarity method to enable the clarity enhancement feature, and use the setClarityParam method to set the clarity level.
The value range of the "intensity" parameter in the ZegoEffectsClarityParam object is [0, 100], with a default value of "0". A larger value indicates a stronger clarity enhancement effect. Developers can customize the value according to their needs.
// Enable clarity enhancement
[self.effects enableClarity:YES];
// Set the clarity level, range [0, 100], default is 0
ZegoEffectsClarityParam *param = [[ZegoEffectsClarityParam alloc] init];
param.intensity = 0;
[self.effects setClarityParam:param];
// Enable clarity enhancement
[self.effects enableClarity:YES];
// Set the clarity level, range [0, 100], default is 0
ZegoEffectsClarityParam *param = [[ZegoEffectsClarityParam alloc] init];
param.intensity = 0;
[self.effects setClarityParam:param];
// Enable clarity enhancement
mEffects.enableClarity(true);
// Set the clarity level, range [0, 100], default is 0
ZegoEffectsClarityParam param = new ZegoEffectsClarityParam();
param.intensity = 0;
mEffects.setClarityParam(param);
// Enable clarity enhancement
mEffects.enableClarity(true);
// Set the clarity level, range [0, 100], default is 0
ZegoEffectsClarityParam param = new ZegoEffectsClarityParam();
param.intensity = 0;
mEffects.setClarityParam(param);
// Enable clarity enhancement
ZegoEffectsPlugin.instance.enableClarity(true);
// Set the clarity level, range [0, 100], default is 0
ZegoEffectsClarityParam param = ZegoEffectsClarityParam();
param.intensity = 100;
ZegoEffectsPlugin.instance.setClarityParam(param);
// Enable clarity enhancement
ZegoEffectsPlugin.instance.enableClarity(true);
// Set the clarity level, range [0, 100], default is 0
ZegoEffectsClarityParam param = ZegoEffectsClarityParam();
param.intensity = 100;
ZegoEffectsPlugin.instance.setClarityParam(param);
// Enable clarity feature
mEffects.enableClarity(true);
// Set the degree of clarity, range [0, 100], default is 0
mEffects.setClarityParam({ intensity: 100 });
// Enable clarity feature
mEffects.enableClarity(true);
// Set the degree of clarity, range [0, 100], default is 0
mEffects.setClarityParam({ intensity: 100 });
Skin Color Adjustment
Warning
Before adjusting the skin color, please import and load the corresponding skin resources from "SkinColorResources", otherwise the feature will not work. For details, please refer to Quick Starts - Import Resources and Models.
Call the enableSkinColor method to enable the skin color adjustment feature, use the setSkinColorResPath method to load the supported skin resources, and then use the setSkinColorParam method to set the intensity of the skin color adjustment.
The value range of the "intensity" parameter in the ZegoEffectsSkinColorParam object is [0, 100], with a default value of "0". A larger value indicates a more noticeable change in skin color. Developers can customize the value according to their needs.
// Enable skin color adjustment
[self.effects enableSkinColor:YES];
// Load the supported/specified skin resources
NSString *skinResPath = @"SkinColorResources/***";
[self.effects setSkinColorResPath:skinResPath];
// Set the intensity of skin color adjustment, range [0, 100], default is 0
ZegoEffectsSkinColorParam *param = [[ZegoEffectsSkinColorParam alloc] init];
param.intensity = 0;
[self.effects setSkinColorParam:param];
// Enable skin color adjustment
[self.effects enableSkinColor:YES];
// Load the supported/specified skin resources
NSString *skinResPath = @"SkinColorResources/***";
[self.effects setSkinColorResPath:skinResPath];
// Set the intensity of skin color adjustment, range [0, 100], default is 0
ZegoEffectsSkinColorParam *param = [[ZegoEffectsSkinColorParam alloc] init];
param.intensity = 0;
[self.effects setSkinColorParam:param];
// Enable skin color adjustment
mEffects.enableSkinColor(true);
// Load the supported/specified skin resources
String skinResPath = "SkinColorResources/***";
mEffects.setSkinColorResPath(skinResPath);
// Set the intensity of the skin color effect, range [0, 100], default is 0
ZegoEffectsSkinColorParam param = new ZegoEffectsSkinColorParam();
param.intensity = 0;
mEffects.setSkinColorParam(param);
// Enable skin color adjustment
mEffects.enableSkinColor(true);
// Load the supported/specified skin resources
String skinResPath = "SkinColorResources/***";
mEffects.setSkinColorResPath(skinResPath);
// Set the intensity of the skin color effect, range [0, 100], default is 0
ZegoEffectsSkinColorParam param = new ZegoEffectsSkinColorParam();
param.intensity = 0;
mEffects.setSkinColorParam(param);
// Enable skin tone adjustment feature
ZegoEffectsPlugin.instance.enableSkinColor(true);
// Set the specified skin color name
ZegoEffectsPlugin.instance.setSkinColor('fenbai');
// Set the intensity of the skin color, range [0, 100], default is 0
ZegoEffectsSkinColorParam param = ZegoEffectsSkinColorParam();
param.intensity = 100;
ZegoEffectsPlugin.instance.setSkinColorParam(param);
// Enable skin tone adjustment feature
ZegoEffectsPlugin.instance.enableSkinColor(true);
// Set the specified skin color name
ZegoEffectsPlugin.instance.setSkinColor('fenbai');
// Set the intensity of the skin color, range [0, 100], default is 0
ZegoEffectsSkinColorParam param = ZegoEffectsSkinColorParam();
param.intensity = 100;
ZegoEffectsPlugin.instance.setSkinColorParam(param);
// Enable skin tone adjustment feature
mEffects.enableSkinColor(true);
// Load the supported/specified skin tone resources
String skinResPath = "SkinColorResources/***";
mEffects.setSkinColorResPath(skinResPath);
// Set the degree of skin tone adjustment, range [0, 100], default is 0;
mEffects.setSkinColorParam({ intensity: 100 });
// Enable skin tone adjustment feature
mEffects.enableSkinColor(true);
// Load the supported/specified skin tone resources
String skinResPath = "SkinColorResources/***";
mEffects.setSkinColorResPath(skinResPath);
// Set the degree of skin tone adjustment, range [0, 100], default is 0;
mEffects.setSkinColorParam({ intensity: 100 });