AI Effects
On this page

Class

ZegoEffectsZegoEffectsAcneRemovingParam
ZegoEffectsAdvancedConfigZegoEffectsBigEyesParam
ZegoEffectsBlurParamZegoEffectsBlusherParam
ZegoEffectsCheekboneSlimmingParamZegoEffectsCheekParam
ZegoEffectsChromaKeyParamZegoEffectsClarityParam
ZegoEffectsColoredcontactsParamZegoEffectsDarkCirclesRemovingParam
ZegoEffectsEyelashesParamZegoEffectsEyelinerParam
ZegoEffectsEyesBrighteningParamZegoEffectsEyeshadowParam
ZegoEffectsFaceDetectionResultZegoEffectsFaceLiftingParam
ZegoEffectsFaceShorteningParamZegoEffectsFilterParam
ZegoEffectsForeheadShorteningParamZegoEffectsLipstickParam
ZegoEffectsLongChinParamZegoEffectsMakeupParam
ZegoEffectsMandibleSlimmingParamZegoEffectsMosaicParam
ZegoEffectsNoseLengtheningParamZegoEffectsNoseNarrowingParam
ZegoEffectsRosyParamZegoEffectsSharpenParam
ZegoEffectsSkinColorParamZegoEffectsSmallMouthParam
ZegoEffectsSmoothParamZegoEffectsTeethWhiteningParam
ZegoEffectsVideoFrameParamZegoEffectsWhitenParam
ZegoEffectsWrinklesRemovingParam

ZegoEffects

AI Effect function

Details

AI Effect function

Declared in ZegoEffects.h

Methods

create:appid:appSign:

static
create:appid:appSign:
+ (ZegoEffects)public create:(NSInteger) appid appSign:(NSString *) appSign;
Creating an Effects instance
Declared in ZegoEffects.h

Parameters

NameTypeDescription
appidNSIntegerappid
appSignNSString *appSign

Details

You need to create and initialize an Effects instance before calling any other function; The SDK supports the creation of multiple ZegoEffects instances.

Return

The ZegoEffects instance object.

getAuthInfo:appSign:

static
getAuthInfo:appSign:
+ (NNString*)getAuthInfo:(NNString*) appSign;
Gets the SDK's authorized message. send authorized message and appID to apply for authentication file to ZEGO server.
Declared in ZegoEffects.h

Parameters

NameTypeDescription
appSignNNString*appSign.

Details

Gets the SDK's authorized message. send authorized message and appID to apply for authentication file to ZEGO server.

Return

authorizedInfo.

getVersion

static
getVersion
+ (NSString *)getVersion;
Gets the SDK's version number.
Declared in ZegoEffects.h

When the SDK is running, the developer finds that it does not match the expected situation and submits the problem and related logs to the ZEGO technical staff for locating. The ZEGO technical staff may need the information of the SDK version to assist in locating the problem. Developers can also collect this information as the version information of the SDK used by the app, so that the SDK corresponding to each version of the app.

SDK version.

setAdvancedConfig:config:

static
setAdvancedConfig:config:
+ (void)setAdvancedConfig:(ZegoEffectsAdvancedConfig) config;
Effects advanced function switch.
Declared in ZegoEffects.h

Parameters

NameTypeDescription
configZegoEffectsAdvancedConfigeffects Advanced configuration. Such as Render-Mode, Device-Performance-Level, etc.
  • When to call: Before you create the engine.

setResources:resourceInfoList:

static
setResources:resourceInfoList:
+ (void)setResources:(nullable NSArray<NSString*> *) resourceInfoList;
Set effects static resources.
Declared in ZegoEffects.h

Parameters

NameTypeDescription
resourceInfoListnullable NSArray<NSString*> *Resource list.

Details

This function is required to set up the static resources when the [enableWhiten] [enableTeethWhitening] [setPendant] interface is called. Support setting multiple resource paths at the same time. This must be set before the Effects instance is created.

create:license:

static
create:license:
deprecated
+ (ZegoEffects)public create:(NSString *) license;
Creating an Effects instance
Declared in ZegoEffects.h

Parameters

NameTypeDescription
licenseNSString *Authentication certificate file.

Details

You need to create and initialize an Effects instance before calling any other function; The SDK supports the creation of multiple ZegoEffects instances.

Deprecated
This API has been deprecated since 2.1.0.

Return

The ZegoEffects instance object.

create:appid:appSign:callback:

static
create:appid:appSign:callback:
+ (void)create:(NSInteger) appid appSign:(NSString) appSign callback:(void (^)(ZegoEffects, NSInteger)) callback;
Creating an Effects instance
Declared in ZegoEffects.h

Parameters

NameTypeDescription
appidNSIntegerSDK authentication Appid.
appSignNSStringSDK authentication AppSign.
callbackvoid (^)(ZegoEffects, NSInteger)Create the result callback of the instance request. The callback contains the ZegoEffects object and the authentication error code.

Details

Return ZegoEffects object after authentication. Effects instances need to be created and initialized before calling other functions.

The returned ZegoEffects object is spit out by the callback.

Return

void

setModels:modelInfoList:

static
setModels:modelInfoList:
+ (void)setModels:(NSArray<NSString*> *) modelInfoList;
Set AI model, support multiple models at the same time.
Declared in ZegoEffects.h

Parameters

NameTypeDescription
modelInfoListNSArray<NSString*> *AI model path

Details

If developers need to use some advanced functions, face detection, portrait segmentation, etc., they need to set up the AI model through this interface, otherwise the AI model-related functions will not be able to be used normally.

  • When to call /Trigger: it takes effect globally and must be set before creating the Effects instance.

enableAcneRemoving:enable:

enableAcneRemoving:enable:
- (ZegoEffects)public enableAcneRemoving:(BOOL) enable;
enable the acne removing function, you can set the acne parameters by calling the [setAcneRemovingParam] interface.
Declared in ZegoEffects.h

Parameters

NameTypeDescription
enableBOOLWhether to activate the acne function; [true] means turning on the function, and vice versa; Default value is [false].

Details

enable the acne removing function, you can set the acne parameters by calling the [setAcneRemovingParam] interface.

enableCheekboneSlimming:enable:

enableCheekboneSlimming:enable:
- (ZegoEffects)public enableCheekboneSlimming:(BOOL) enable;
enable the cheekbone slimming function, you can set the cheekbone slimming parameters by calling the [setCheekboneSlimmingParam] interface.
Declared in ZegoEffects.h

Parameters

NameTypeDescription
enableBOOLWhether to activate the thin cheekbones function; [true] means to activate the thin cheekbones function; [false] means to turn off the thin cheekbones function.

Details

enable the cheekbone slimming function, you can set the cheekbone slimming parameters by calling the [setCheekboneSlimmingParam] interface.

enableClarity:enable:

enableClarity:enable:
- (ZegoEffects)public enableClarity:(BOOL) enable;
enable the clarity function, you can set the clarity parameters by calling the [setClarityParam] interface.
Declared in ZegoEffects.h

Parameters

NameTypeDescription
enableBOOLWhether to activate the clarity function; [true] means turning on the function, and vice versa; Default value is [false].

Details

enable the clarity function, you can set the clarity parameters by calling the [setClarityParam] interface.

enableDarkCirclesRemoving:enable:

enableDarkCirclesRemoving:enable:
- (ZegoEffects)public enableDarkCirclesRemoving:(BOOL) enable;
enable the darkcircles removing function, you can set the ruddy parameters by calling the [setDarkCirclesRemovingParam] interface.
Declared in ZegoEffects.h

Parameters

NameTypeDescription
enableBOOLenable the darkcircles removing function, you can set the darkcircles removing parameters by calling the [setDarkCirclesRemovingParam] interface.

Details

enable the darkcircles removing function, you can set the ruddy parameters by calling the [setDarkCirclesRemovingParam] interface.

enableFaceShortening:enable:

enableFaceShortening:enable:
- (ZegoEffects)public enableFaceShortening:(BOOL) enable;
enable the face shortening function, you can set the face shortening parameters by calling the [setFaceShorteningParam] interface.
Declared in ZegoEffects.h

Parameters

NameTypeDescription
enableBOOLWhether to activate the small face function; [true] means to activate the small face function; [false] means to turn off the small face function.

Details

enable the face shortening function, you can set the face shortening parameters by calling the [setFaceShorteningParam] interface.

enableForeheadShortening:enable:

enableForeheadShortening:enable:
- (ZegoEffects)public enableForeheadShortening:(BOOL) enable;
enable the forehead shortening function, you can set the forehead shortening parameters by calling the [setForeheadShorteningParam] interface.
Declared in ZegoEffects.h

Parameters

NameTypeDescription
enableBOOLWhether to enable forehead height reduction function; [true] means to enable forehead height reduction function; [false] means to disable forehead height reduction function.

Details

enable the forehead shortening function, you can set the forehead shortening parameters by calling the [setForeheadShorteningParam] interface.

Return

ZegoEffects

enableMandibleSlimming:enable:

enableMandibleSlimming:enable:
- (ZegoEffects)public enableMandibleSlimming:(BOOL) enable;
enable the mandible slimming function, you can set the mandible slimming parameters by calling the [setMandibleSlimmingParam] interface.
Declared in ZegoEffects.h

Parameters

NameTypeDescription
enableBOOLWhether to enable the thin mandible function; [true] means to start the thin mandible function; [false] means to close the thin mandible function.

Details

enable the mandible slimming function, you can set the mandible slimming parameters by calling the [setMandibleSlimmingParam] interface.

enableNoseLengthening:enable:

enableNoseLengthening:enable:
- (ZegoEffects)public enableNoseLengthening:(BOOL) enable;
enable the nose lengthening function, you can set the nose lengthening parameters by calling the [setNoseLengtheningParam] interface.
Declared in ZegoEffects.h

Parameters

NameTypeDescription
enableBOOLWhether to enable the proboscis function; [true] means to enable the proboscis function; [false] means to disable the proboscis function.

Details

enable the nose lengthening function, you can set the nose lengthening parameters by calling the [setNoseLengtheningParam] interface.

Return

ZegoEffects

enableSkinColor:enable:

enableSkinColor:enable:
- (ZegoEffects)public enableSkinColor:(BOOL) enable;
enable the skin color function
Declared in ZegoEffects.h

Parameters

NameTypeDescription
enableBOOLWhether to activate the skin color function; [true] means turning on the function, and vice versa; Default value is [false].

Details

enable the skin color function, you can set that parameters by calling the [setSkinColorParam] interface, and set skin style resource by calling the [setSkinColorResPath].

enableWrinklesRemoving:enable:

enableWrinklesRemoving:enable:
- (ZegoEffects)public enableWrinklesRemoving:(BOOL) enable;
Enable the wrinkles removing function, you can set the wrinkles removing parameters by calling the [setWrinklesRemovingParam] interface.
Declared in ZegoEffects.h

Parameters

NameTypeDescription
enableBOOLWhether to activate the function of removing dark circles; [true] means to activate the function of removing dark circles; [false] means to disable the function of removing dark circles.

Details

Enable the wrinkles removing function, you can set the wrinkles removing parameters by calling the [setWrinklesRemovingParam] interface.

getDeviceLevel

getDeviceLevel
- (ZegoEffectsDeviceLevel)public getDeviceLevel;
Get the device phone performance level. Deploy before the Effects environment is initialized to obtain the effect capabilities corresponding to device performance.<br/>
Declared in ZegoEffects.h

When the SDK is running, the developer finds that it does not match the expected situation and submits the problem and related logs to the ZEGO technical staff for locating. The ZEGO technical staff may need the information of the SDK device level to assist in locating the problem.

Device leve enumeratioln, corresponding integer number.

setAcneRemovingParam:param:

setAcneRemovingParam:param:
- (ZegoEffects)public setAcneRemovingParam:(ZegoEffectsAcneRemovingParam) param;
Set acne removing parameters
Declared in ZegoEffects.h

Parameters

NameTypeDescription
paramZegoEffectsAcneRemovingParamthe acne removing parameters.

Details

Set acne removing parameters.

setBlusher:path:

setBlusher:path:
- (ZegoEffects)public setBlusher:(NNString) path;
Set the blusher resource, set [nil] to remove the blusher by default.
Declared in ZegoEffects.h

Parameters

NameTypeDescription
pathNNStringThe absolute path of the blusher resource.

Details

developers can call [setBlusherParam] to set the blusher parameters. When the corresponding blusher source is set, the beauty blusher function will be automatically activated.

  • Available since: 1.4.0.

setBlusherParam:param:

setBlusherParam:param:
- (ZegoEffects)public setBlusherParam:(ZegoEffectsBlusherParam) param;
Set blusher parameters.
Declared in ZegoEffects.h

Parameters

NameTypeDescription
paramZegoEffectsBlusherParamblusher parameters.

Details

Set blusher parameters.

setCheekboneSlimmingParam:param:

setCheekboneSlimmingParam:param:
- (ZegoEffects)public setCheekboneSlimmingParam:(ZegoEffectsCheekboneSlimmingParam) param;
Set the cheekbone slimming parameters.
Declared in ZegoEffects.h

Parameters

NameTypeDescription
paramZegoEffectsCheekboneSlimmingParamFunctional parameters of thin cheekbones.

Details

Set the cheekbone slimming parameters.

setClarityParam:param:

setClarityParam:param:
- (ZegoEffects)public setClarityParam:(ZegoEffectsClarityParam) param;
Set clarity parameters
Declared in ZegoEffects.h

Parameters

NameTypeDescription
paramZegoEffectsClarityParamthe clarity parameters.

Details

Set clarity parameters

setColoredcontacts:path:

setColoredcontacts:path:
- (void)setColoredcontacts:(NNString) path;
Set the coloredcontacts resource, set [nil] to remove the coloredcontacts by default.
Declared in ZegoEffects.h

Parameters

NameTypeDescription
pathNNStringAbsolute path of coloredcontacts resources.

Details

developers can call [setColoredcontactsParam] to set coloredcontacts parameters. When the corresponding coloredcontacts resources are set, the beauty coloredcontacts function will be automatically activated.

  • Available since: 1.4.0.

setColoredcontactsParam:param:

setColoredcontactsParam:param:
- (ZegoEffects) setColoredcontactsParam:(ZegoEffectsColoredcontactsParam) param;
Set coloredcontacts parameters.
Declared in ZegoEffects.h

Parameters

NameTypeDescription
paramZegoEffectsColoredcontactsParamcoloredcontacts parameters.

Details

Set coloredcontacts parameters.

setDarkCirclesRemovingParam:param:

setDarkCirclesRemovingParam:param:
- (ZegoEffects)public setDarkCirclesRemovingParam:(ZegoEffectsDarkCirclesRemovingParam) param;
Set the darkcircles removing parameters.
Declared in ZegoEffects.h

Parameters

NameTypeDescription
paramZegoEffectsDarkCirclesRemovingParamRemove dark circles function parameters.

Details

Set the darkcircles removing parameters.

setEyeliner:path:

setEyeliner:path:
- (ZegoEffects)public setEyeliner:(NNString) path;
Set the eyeliner resource, set [nil] to remove the eyeliner by default.
Declared in ZegoEffects.h

Parameters

NameTypeDescription
pathNNStringThe absolute path of the eyeliner resource.

Details

developers can call [setEyelinerParam] to set the eyeliner parameters. When the corresponding eyeliner source is set, the beauty eyeliner function will be automatically activated.

  • Available since: 1.4.0.

setFaceShorteningParam:param:

setFaceShorteningParam:param:
- (ZegoEffects)public setFaceShorteningParam:(ZegoEffectsFaceShorteningParam) param;
Set the face shortening parameters.
Declared in ZegoEffects.h

Parameters

NameTypeDescription
paramZegoEffectsFaceShorteningParamSmall face function parameters.

Details

Set the face shortening parameters.

setForeheadShorteningParam:param:

setForeheadShorteningParam:param:
- (ZegoEffects) setForeheadShorteningParam:(ZegoEffectsForeheadShorteningParam) param;
Set the forehead shortening parameters.
Declared in ZegoEffects.h

Parameters

NameTypeDescription
paramZegoEffectsForeheadShorteningParamReduce forehead height function parameters.

Details

Set the forehead shortening parameters.

setMakeup:path:

setMakeup:path:
- (ZegoEffects)public setMakeup:(NNString) path;
Set the makeup resource, set [nil] to remove the makeup by default.
Declared in ZegoEffects.h

Parameters

NameTypeDescription
pathNNStringThe absolute path of the makeup resource.

Details

developers can call [setMakeupParam] to set the makeup parameters. When the corresponding makeup resource is set, the beauty makeup function will be automatically activated.

  • Available since: 1.4.0.

setMakeupParam:param:

setMakeupParam:param:
- (ZegoEffects)public setMakeupParam:(ZegoEffectsMakeupParam) param;
Set makeup parameters.
Declared in ZegoEffects.h

Parameters

NameTypeDescription
paramZegoEffectsMakeupParammakeup parameters.

Details

Set makeup parameters.

setMandibleSlimmingParam:param:

setMandibleSlimmingParam:param:
- (ZegoEffects)public setMandibleSlimmingParam:(ZegoEffectsMandibleSlimmingParam) param;
Set the mandible slimming parameters.
Declared in ZegoEffects.h

Parameters

NameTypeDescription
paramZegoEffectsMandibleSlimmingParamThin mandible parameters.

Details

Set the mandible slimming parameters.

setNoseLengtheningParam:param:

setNoseLengtheningParam:param:
- (ZegoEffects)public setNoseLengtheningParam:(ZegoEffectsNoseLengtheningParam) param;
Set the nose lengthening parameters.
Declared in ZegoEffects.h

Parameters

NameTypeDescription
paramZegoEffectsNoseLengtheningParamnoselengthening parameters.

Details

Set the nose lengthening parameters.

setSkinColorParam:param:

setSkinColorParam:param:
- (ZegoEffects)public setSkinColorParam:(ZegoEffectsSkinColorParam) param;
Set the skin color parameters.
Declared in ZegoEffects.h

Parameters

NameTypeDescription
paramZegoEffectsSkinColorParamthe skin color strengthen parameters.

Details

Set the skin color parameters.

setSkinColorResPath:bundlePath:

setSkinColorResPath:bundlePath:
- (ZegoEffects)public setSkinColorResPath:(NSString *) bundlePath;
Set the skin resource path' parameters.
Declared in ZegoEffects.h

Parameters

NameTypeDescription
bundlePathNSString *the skin color resource path' parameters.

Details

When using a custom skin color function, you need to call [enableSkinColor] enable skin resource after the skin color of interface Settings to take effect.

setWrinklesRemovingParam:param:

setWrinklesRemovingParam:param:
- (ZegoEffects)public setWrinklesRemovingParam:(ZegoEffectsWrinklesRemovingParam) param;
Set the wrinkles removing parameters.
Declared in ZegoEffects.h

Parameters

NameTypeDescription
paramZegoEffectsWrinklesRemovingParamRemove dark circles function parameters.

Details

Set the wrinkles removing parameters.

destroy

destroy
- (void)destroy;
Destroy the Effects Object.
Declared in ZegoEffects.h

Used to release resources used by the SDK.

setEventHandler:eventHandler:

setEventHandler:eventHandler:
- (ZegoEffects)public setEventHandler:(nullable id<ZegoEffectsEventHandler>) eventHandler;
Sets up the event notification callbacks that need to be handled. If the eventHandler is set to [nil], all the callbacks set previously will be cleared.
Declared in ZegoEffects.h

Parameters

NameTypeDescription
eventHandlernullable id<ZegoEffectsEventHandler>Event notification callback. Developers should override callback related methods to focus on specific notifications based on their own business scenarios. The main callback methods of SDK are in [ZegoEffectsEventHandler].

Details

Sets up the event notification callbacks that need to be handled. If the eventHandler is set to [nil], all the callbacks set previously will be cleared.

enableEyesBrightening:enable:

enableEyesBrightening:enable:
- (ZegoEffects)public enableEyesBrightening:(BOOL) enable;
enable bright eyes, developers can set the bright eyes parameter by calling [seteyesbrighteningParam].
Declared in ZegoEffects.h

Parameters

NameTypeDescription
enableBOOLWhether to enable the eye brightening feature; [true] indicates that the eye brightening feature is enabled; [false] indicates that the eye brightening feature is disabled. The default value is [false].

Details

enable bright eyes, developers can set the bright eyes parameter by calling [seteyesbrighteningParam].

enableLongChin:enable:

enableLongChin:enable:
- (ZegoEffects)public enableLongChin:(BOOL) enable;
Long chin function is enabled, and parameters of long chin can be set by calling [SetLongChinParam] interface.
Declared in ZegoEffects.h

Parameters

NameTypeDescription
enableBOOLWhether to start the longchin function; [true] means start the longchin function; [false] means close the longchin function.

Details

Long chin function is enabled, and parameters of long chin can be set by calling [SetLongChinParam] interface.

enableRosy:enable:

enableRosy:enable:
- (ZegoEffects)public enableRosy:(BOOL) enable;
enable the ruddy function, you can set the ruddy parameters by calling the [setRosyParam] interface.
Declared in ZegoEffects.h

Parameters

NameTypeDescription
enableBOOLWhether to enable the rosy cheeks feature; [true] means the rosy cheeks feature is activated; [false] means the rosy cheeks feature is turned off. The default value is [false].

Details

enable the ruddy function, you can set the ruddy parameters by calling the [setRosyParam] interface.

enableSharpen:enable:

enableSharpen:enable:
- (ZegoEffects)public enableSharpen:(BOOL) enable;
enable the sharpening function, you can call the [setSharpenParam] interface to set the sharpening parameters.
Declared in ZegoEffects.h

Parameters

NameTypeDescription
enableBOOLWhether to enable the sharpening function; [true] indicates that the sharpening function is enabled; [false] indicates that the sharpening function is disabled. The default value is [false].

Details

enable the sharpening function, you can call the [setSharpenParam] interface to set the sharpening parameters.

enableSmooth:enable:

enableSmooth:enable:
- (ZegoEffects)public enableSmooth:(BOOL) enable;
The function of peeling is enabled, and the [setSmoothParam] interface can be called to set the peeling parameters.
Declared in ZegoEffects.h

Parameters

NameTypeDescription
enableBOOLWhether to start the microdermabrasion function; [true] means start the microdermabrasion function; [false] means close the microdermabrasion function.

Details

The function of peeling is enabled, and the [setSmoothParam] interface can be called to set the peeling parameters.

setEyelashes:path:

setEyelashes:path:
- (ZegoEffects)public setEyelashes:(NNString) path;
Set the eyelashes resource, set [nil] to remove the eyelashes by default.
Declared in ZegoEffects.h

Parameters

NameTypeDescription
pathNNStringAbsolute path of eyelashes resources.

Details

developers can call [setEyelashesParam] to set eyelashes parameters. When the corresponding eyelashes resources are set, the beauty eyelashes function will be automatically activated.

  • Available since: 1.4.0.

setEyelashesParam:param:

setEyelashesParam:param:
- (ZegoEffects)public setEyelashesParam:(ZegoEffectsEyelashesParam) param;
Set eyelashes parameters.
Declared in ZegoEffects.h

Parameters

NameTypeDescription
paramZegoEffectsEyelashesParamEyelashes parameters.

Details

Set eyelashes parameters.

setEyelinerParam:param:

setEyelinerParam:param:
- (ZegoEffects)public setEyelinerParam:(ZegoEffectsEyelinerParam) param;
Set eyeliner parameters.
Declared in ZegoEffects.h

Parameters

NameTypeDescription
paramZegoEffectsEyelinerParamEyeliner parameters.

Details

Set eyeliner parameters.

setEyesBrighteningParam:param:

setEyesBrighteningParam:param:
- (ZegoEffects)public setEyesBrighteningParam:(ZegoEffectsEyesBrighteningParam) param;
Set the brightness parameters.
Declared in ZegoEffects.h

Parameters

NameTypeDescription
paramZegoEffectsEyesBrighteningParamSet the brightness parameters.

Details

Set the brightness parameters.

setEyeshadow:path:

setEyeshadow:path:
- (ZegoEffects)public setEyeshadow:(NNString) path;
Set the eyeshadow resource, set [nil] to remove the eyeshadow by default.
Declared in ZegoEffects.h

Parameters

NameTypeDescription
pathNNStringThe absolute path of the eye shadow resource.

Details

developers can call [setEyeshadowParam] to set the eye shadow parameters. When the corresponding eye shadow source is set, the beauty eye shadow function will be automatically activated.

  • Available since: 1.4.0.

setEyeshadowParam:param:

setEyeshadowParam:param:
- (ZegoEffects)public setEyeshadowParam:(ZegoEffectsEyeshadowParam) param;
Set eyeshadow parameters.
Declared in ZegoEffects.h

Parameters

NameTypeDescription
paramZegoEffectsEyeshadowParamEye shadow parameters.

Details

Set eyeshadow parameters.

setFilter:path:

setFilter:path:
- (ZegoEffects)public setFilter:(NSString *) path;
Set the filter resource, set [nil] to remove the filter by default.
Declared in ZegoEffects.h

Parameters

NameTypeDescription
pathNSString *The absolute path of the filter resource.

Details

developers can call [setFilterParam] to set the filter parameters. When the corresponding filter source is set, the beauty filter function will be automatically activated.

  • Available since: 1.1.0

setFilterParam:param:

setFilterParam:param:
- (ZegoEffects)public setFilterParam:(ZegoEffectsFilterParam) param;
Set filter parameters
Declared in ZegoEffects.h

Parameters

NameTypeDescription
paramZegoEffectsFilterParamFilter function parameters.

Details

Set filter parameters

setLipstick:path:

setLipstick:path:
- (ZegoEffects)public setLipstick:(NSString) path;
Set up lipstick resources, set [nil] to remove the lipstick by default.
Declared in ZegoEffects.h

Parameters

NameTypeDescription
pathNSStringAbsolute path of lipstick resources.

Details

developers can call [setLipstickParam] to set lipstick parameters. When the corresponding lipstick resource is set, the beauty lipstick function will be automatically activated.

  • Available since: 1.4.0.

setLipstickParam:param:

setLipstickParam:param:
- (ZegoEffects)public setLipstickParam:(ZegoEffectsLipstickParam) param;
Set lipstick parameters.
Declared in ZegoEffects.h

Parameters

NameTypeDescription
paramZegoEffectsLipstickParamLipstick parameters.

Details

Set lipstick parameters.

setLongChinParam:param:

setLongChinParam:param:
- (ZegoEffects)public setLongChinParam:(ZegoEffectsLongChinParam) param;
Set long chin parameters.
Declared in ZegoEffects.h

Parameters

NameTypeDescription
paramZegoEffectsLongChinParamSet long chin parameters.

Details

Set long chin parameters.

setNoseNarrowingParam:param:

setNoseNarrowingParam:param:
- (ZegoEffects)public setNoseNarrowingParam:(ZegoEffectsNoseNarrowingParam) param;
Set thin nose parameters.
Declared in ZegoEffects.h

Parameters

NameTypeDescription
paramZegoEffectsNoseNarrowingParamNose slimming parameters.

Details

Set thin nose parameters.

setPendant:path:

setPendant:path:
- (ZegoEffects)public setPendant:(NSString *) path;
Set the pendant.
Declared in ZegoEffects.h

Parameters

NameTypeDescription
pathNSString *absolute path of the pendant.

Details

Developers can set different pendants through this interface. After setting a new pendant, the last set pendant will be overwritten. If you need to close the pendant, please set [nil] The pendant may cover some beauty effects

setRosyParam:param:

setRosyParam:param:
- (ZegoEffects)public setRosyParam:(ZegoEffectsRosyParam) param;
set rosy parameters.
Declared in ZegoEffects.h

Parameters

NameTypeDescription
paramZegoEffectsRosyParamRosy cheeks function parameters.

Details

set rosy parameters.

setSharpenParam:param:

setSharpenParam:param:
- (ZegoEffects)public setSharpenParam:(ZegoEffectsSharpenParam) param;
Set the smooth parameters.
Declared in ZegoEffects.h

Parameters

NameTypeDescription
paramZegoEffectsSharpenParamThe parameter of sharpen.

Details

Set the smooth parameters.

setSmallMouthParam:param:

setSmallMouthParam:param:
- (ZegoEffects)public setSmallMouthParam:(ZegoEffectsSmallMouthParam) param;
Set the small mouth parameters.
Declared in ZegoEffects.h

Parameters

NameTypeDescription
paramZegoEffectsSmallMouthParam"Small mouth function parameters."

Details

Set the small mouth parameters.

setSmoothParam:param:

setSmoothParam:param:
- (ZegoEffects)public setSmoothParam:(ZegoEffectsSmoothParam) param;
Set the smooth parameters
Declared in ZegoEffects.h

Parameters

NameTypeDescription
paramZegoEffectsSmoothParamSkin smoothing function parameters.

Details

Set the smooth parameters

setTeethWhiteningParam:param:

setTeethWhiteningParam:param:
- (ZegoEffects)public setTeethWhiteningParam:(ZegoEffectsTeethWhiteningParam) param;
Set the white tooth parameters.
Declared in ZegoEffects.h

Parameters

NameTypeDescription
paramZegoEffectsTeethWhiteningParamTeeth whitening function parameters.

Details

Set the white tooth parameters.

enableBigEyes:enable:

enableBigEyes:enable:
- (ZegoEffects)public enableBigEyes:(BOOL) enable;
Eyes will get bigger when enabled
Declared in ZegoEffects.h

Parameters

NameTypeDescription
enableBOOLWhether to activate the eye enlargement feature; [true] means the eye enlargement feature is activated; [false] means the eye enlargement feature is deactivated. The default value is [false].

Details

Eyes will get bigger when enabled

setBigEyesParam:param:

setBigEyesParam:param:
- (ZegoEffects)public setBigEyesParam:(ZegoEffectsBigEyesParam) param;
Set the eye enlargement parameters.
Declared in ZegoEffects.h

Parameters

NameTypeDescription
paramZegoEffectsBigEyesParamThe eye enlargement parameter

Details

Set the eye enlargement parameter

enableTeethWhitening:enable:

enableTeethWhitening:enable:
- (ZegoEffects)public enableTeethWhitening:(BOOL) enable;
Open the teeth will become more white, you can set some parameters through the [setTeethWhiteningParam] interface.
Declared in ZegoEffects.h

Parameters

NameTypeDescription
enableBOOLWhether to activate the teeth whitening function; [true] means the teeth whitening function is activated; [false] means the teeth whitening function is deactivated. The default value is [false].

Details

Open the teeth will become more white, you can set some parameters through the [setTeethWhiteningParam] interface.

enableWhiten:enable:

enableWhiten:enable:
- (ZegoEffects)public enableWhiten:(BOOL) enable;
When opened, the skin will become whiter.
Declared in ZegoEffects.h

Parameters

NameTypeDescription
enableBOOLWhether to activate the skin whitening function; [true] indicates that the skin whitening function is activated; [false] indicates that the skin whitening function is deactivated. The default value is [false].

Details

When opened, the skin will become whiter.

setWhitenParam:param:

setWhitenParam:param:
- (ZegoEffects)public setWhitenParam:(ZegoEffectsWhitenParam) param;
Set whitening parameters
Declared in ZegoEffects.h

Parameters

NameTypeDescription
paramZegoEffectsWhitenParamwhitening parameters

Details

Set whitening parameters

initEnv:resolution:

initEnv:resolution:
- (void)initEnv:(CGSize) resolution;
Initialize the Effects engine environment
Declared in ZegoEffects.h

Parameters

NameTypeDescription
resolutionCGSizePicture resolution.

Details

This interface needs to be called to initialize the Effects engine environment before processing image or video data. During the first initialization, if any AI-related function is used, this interface will take time. Please do not call this interface on the main thread, otherwise it will cause the UI thread to stall.

setFaceLiftingParam:param:

setFaceLiftingParam:param:
- (ZegoEffects)public setFaceLiftingParam:(ZegoEffectsFaceLiftingParam) param;
Set the thin face parameters
Declared in ZegoEffects.h

Parameters

NameTypeDescription
paramZegoEffectsFaceLiftingParamThe thin face parameters

Details

Set the thin face parameters

uninitEnv

uninitEnv
- (void)uninitEnv;
Uninitializes the Effects engine environment
Declared in ZegoEffects.h

When you stop using the camera to capture, you can call this interface to de-initialize the effects engine environment. De-initialization will release some resource-consuming threads and memory inside the engine. In addition, the loaded ai model and static resources will not be released after de-initialization. The SDK will only be released when the SDK is destroyed, so when initEnv is used again next time, it will not be time-consuming due to model loading.

enableChromaKey:enable:

enableChromaKey:enable:
- (ZegoEffects)public enableChromaKey:(BOOL) enable;
Enable green screen segmentation.
Declared in ZegoEffects.h

Parameters

NameTypeDescription
enableBOOLWhether to activate the green screen segmentation function; [true] means the green screen segmentation function is activated; [false] means the green screen function is deactivated. The default value is [false].

Details

After starting green screen segmentation, the engine will take green as the key color, and conduct image matting for colors other than green. Developers can use [enableChromaKeyBackground] [enableChromaKeyBackgroundBlur] [enableChromaKeyBackgroundMosaic] interface to modify the green curtain custom background.

setChromaKeyBackgroundPath:imagePath:mode:

setChromaKeyBackgroundPath:imagePath:mode:
- (ZegoEffects)public setChromaKeyBackgroundPath:(NSString *) imagePath mode:(ZegoEffectsScaleMode) mode;
Set the green screen custom background path.
Declared in ZegoEffects.h

Parameters

NameTypeDescription
imagePathNSString *Image path.
modeZegoEffectsScaleModeView mode.

Details

When using a custom background, you need to call [enableChromaKeyBackground] enable custom background after the background of interface Settings to take effect.

setChromaKeyParam:param:

setChromaKeyParam:param:
- (ZegoEffects)public setChromaKeyParam:(ZegoEffectsChromaKeyParam) param;
Sets the green screen partition parameters
Declared in ZegoEffects.h

Parameters

NameTypeDescription
paramZegoEffectsChromaKeyParamGreen screen segmentation function parameters.

Details

Developers can adjust green screen tolerance, key colors and other parameters through this interface.

enableChromaKeyBackground:enable:

enableChromaKeyBackground:enable:
- (ZegoEffects)public enableChromaKeyBackground:(BOOL) enable;
When the green screen custom background is enabled, the SDK engine will use green as the key color and replace it with the background set by the developer.
Declared in ZegoEffects.h

Parameters

NameTypeDescription
enableBOOL

Details

Developers can also through [setChromaKeyBackgroundBuffer] [setChromaKeyBackgroundPath] [setChromaKeyBackgroundTexture] set up green screen custom background。 [enableChromaKeyBackgroundMosaic] [enableChromaKeyBackground] [enableChromaKeyBackgroundBlur] the interface can only start one, Each of these enable will overwrite the previous function.

enableChromaKeyBackgroundBlur:enable:

enableChromaKeyBackgroundBlur:enable:
- (ZegoEffects)public enableChromaKeyBackgroundBlur:(BOOL) enable;
Open the green screen background fuzzy segmentation.
Declared in ZegoEffects.h

Parameters

NameTypeDescription
enableBOOLWhether to activate the green screen background segmentation feature; [true] indicates that the green screen background segmentation feature is enabled; [false] indicates that the green screen background segmentation feature is disabled. The default value is [false].

Details

Open the green screen background fuzzy segmentation, starts fuzzy parameter can be set up by [setChromaKeyBackgroundBlurParam] background.

enableChromaKeyBackgroundMosaic:enable:

enableChromaKeyBackgroundMosaic:enable:
- (ZegoEffects)public enableChromaKeyBackgroundMosaic:(BOOL) enable;
Turn on the green background Mosaic. The SDK engine will turn the green background into a Mosaic after startup.
Declared in ZegoEffects.h

Parameters

NameTypeDescription
enableBOOLWhether to activate the green screen background mosaic function; [true] means the green screen background mosaic function is activated; [false] means the green screen background mosaic function is deactivated. The default value is [false].

Details

Developers can also through[setChromaKeyBackgroundMosaicParam] setting green Mosaic parameters. [enableChromaKeyBackgroundMosaic] [enableChromaKeyBackground] [enableChromaKeyBackgroundBlur] the interface can only start one, Each of these enable will overwrite the previous function.

enablePortraitSegmentation:enable:

enablePortraitSegmentation:enable:
- (ZegoEffects)public enablePortraitSegmentation:(BOOL) enable;
When AI portrait segmentation is enabled.
Declared in ZegoEffects.h

Parameters

NameTypeDescription
enableBOOLWhether to activate the portrait segmentation function; [true] indicates that the portrait segmentation function is activated; [false] indicates that the portrait segmentation function is deactivated. The default value is [false].

Details

When AI portrait segmentation is enabled, the SDK engine will cut out the portrait and change the background alpha channel to 0. Developers can play videos in the background by using a transparent background. Developers can also through [enablePortraitSegmentationBackground] [enablePortraitSegmentationBackgroundMosaic] [enablePortraitSegmentationBackgroundBlur] interface to set a custom background or Mosaic or gaussian blur the background. This function is suitable for business scenarios such as playing video in the background or playing PPT in the background.

enablePortraitSegmentationBackground:enable:

enablePortraitSegmentationBackground:enable:
- (ZegoEffects)public enablePortraitSegmentationBackground:(BOOL) enable;
Turn on AI Portrait Segmentation Custom Background.
Declared in ZegoEffects.h

Parameters

NameTypeDescription
enableBOOLWhether to activate the AI portrait segmentation custom background feature; [true] means the AI portrait segmentation custom background feature is enabled; [false] means the AI portrait segmentation custom background feature is disabled. The default value is [false].

Details

Turn on AI Portrait Segmentation Custom Background, When activated by [setPortraitSegmentationBackgroundTexture] [setPortraitSegmentationBackgroundPath] [setPortraitSegmentationBackgroundBuffer] interface Settings such as custom background. The SDK will cut out the portrait image and place the portrait on the background image set by the developer.

enablePortraitSegmentationBackgroundBlur:enable:

enablePortraitSegmentationBackgroundBlur:enable:
- (ZegoEffects)public enablePortraitSegmentationBackgroundBlur:(BOOL) enable;
Open ai portrait background segmentation fuzzy.
Declared in ZegoEffects.h

Parameters

NameTypeDescription
enableBOOLWhether to activate the portrait segmentation background blur feature; [true] means the portrait segmentation background blur feature is enabled; [false] means the portrait segmentation background blur feature is disabled. The default value is [false].

Details

Open ai portrait background segmentation fuzzy, start after fuzzy parameter can be set up by [setPortraitSegmentationBackgroundBlurParam] background.

enablePortraitSegmentationBackgroundMosaic:enable:

enablePortraitSegmentationBackgroundMosaic:enable:
- (ZegoEffects)public enablePortraitSegmentationBackgroundMosaic:(BOOL) enable;
Open the ai portrait background segmentation Mosaic.
Declared in ZegoEffects.h

Parameters

NameTypeDescription
enableBOOLWhether to activate the portrait segmentation background mosaic feature; [true] indicates that the portrait segmentation background mosaic feature is enabled; [false] indicates that the portrait segmentation background mosaic feature is disabled. The default value is [false].

Details

Open the ai portrait background segmentation Mosaic, starts can be set up by [setPortraitSegmentationBackgroundMosaicParam] Mosaic type.

setChromaKeyBackgroundBlurParam:param:

setChromaKeyBackgroundBlurParam:param:
- (ZegoEffects)public setChromaKeyBackgroundBlurParam:(ZegoEffectsBlurParam) param;
Sets the green screen background blur parameter
Declared in ZegoEffects.h

Parameters

NameTypeDescription
paramZegoEffectsBlurParamGreen Screen Background Blur Function Parameters.

Details

When using background blur, you need to call [enableChromaKeyBackgroundBlur] enable background blur the background of interface Settings to take effect.

setChromaKeyBackgroundBuffer:buffer:mode:

setChromaKeyBackgroundBuffer:buffer:mode:
- (ZegoEffects)public setChromaKeyBackgroundBuffer:(CVPixelBufferRef) buffer mode:(ZegoEffectsScaleMode) mode;
Set the green screen split custom background.
Declared in ZegoEffects.h

Parameters

NameTypeDescription
bufferCVPixelBufferRefPicture frame data.
modeZegoEffectsScaleModeView mode.

Details

When using a custom background, you need to call [enableChromaKeyBackground] enable custom background after the background of interface Settings to take effect.

Return

ZegoEffects

setChromaKeyBackgroundMosaicParam:param:

setChromaKeyBackgroundMosaicParam:param:
- (ZegoEffects)public setChromaKeyBackgroundMosaicParam:(ZegoEffectsMosaicParam) param;
Set the background mosaic parameters of the green screen segmentation.
Declared in ZegoEffects.h

Parameters

NameTypeDescription
paramZegoEffectsMosaicParamMosaic parameters.

Details

You need to call [enableChromaKeyBackgroundMosaic] enable background Mosaic after the background of interface Settings to take effect.

setChromaKeyForegroundPosition:rect:

setChromaKeyForegroundPosition:rect:
- (ZegoEffects)public setChromaKeyForegroundPosition:(CGRect) rect;
Sets the green screen segmentation foreground position.
Declared in ZegoEffects.h

Parameters

NameTypeDescription
rectCGRect

Details

When using a custom background for the green screen segmentation, you can adjust the position coordinates of the foreground through this interface.

setPortraitSegmentationBackgroundBlurParam:param:

setPortraitSegmentationBackgroundBlurParam:param:
- (ZegoEffects)public setPortraitSegmentationBackgroundBlurParam:(ZegoEffectsBlurParam) param;
Set AI portrait segmentation background blur parameters
Declared in ZegoEffects.h

Parameters

NameTypeDescription
paramZegoEffectsBlurParamPortrait Segmentation Background Blur Function Parameters.

Details

When using background blur, you need to call [enablePortraitSegmentationBackgroundBlur] enable background blur the background of interface Settings to take effect.

setPortraitSegmentationBackgroundBuffer:buffer:mode:

setPortraitSegmentationBackgroundBuffer:buffer:mode:
- (ZegoEffects)public setPortraitSegmentationBackgroundBuffer:(CVPixelBufferRef) buffer mode:(ZegoEffectsScaleMode) mode;
Set up custom backgrounds for AI portrait segmentation
Declared in ZegoEffects.h

Parameters

NameTypeDescription
bufferCVPixelBufferRefPicture frame data.
modeZegoEffectsScaleModeView mode.

Details

When using a custom background, you need to call [enablePortraitSegmentationBackground] enable custom background after the background of interface Settings to take effect.

setPortraitSegmentationBackgroundMosaicParam:param:

setPortraitSegmentationBackgroundMosaicParam:param:
- (ZegoEffects)public setPortraitSegmentationBackgroundMosaicParam:(ZegoEffectsMosaicParam) param;
Sets portrait split background Mosaic parameters
Declared in ZegoEffects.h

Parameters

NameTypeDescription
paramZegoEffectsMosaicParamMosaic parameters.

Details

You need to call [enablePortraitSegmentationBackgroundMosaic] enable background Mosaic after the background of interface Settings to take effect.

setPortraitSegmentationBackgroundPath:imagePath:mode:

setPortraitSegmentationBackgroundPath:imagePath:mode:
- (ZegoEffects)public setPortraitSegmentationBackgroundPath:(NSString *) imagePath mode:(ZegoEffectsScaleMode) mode;
Set custom background path for AI portrait segmentation.
Declared in ZegoEffects.h

Parameters

NameTypeDescription
imagePathNSString *Image path.
modeZegoEffectsScaleModeView mode.

Details

When using a custom background, you need to call [enablePortraitSegmentationBackground] enable custom background after the background of interface Settings to take effect.

setPortraitSegmentationForegroundPosition:rect:

setPortraitSegmentationForegroundPosition:rect:
- (ZegoEffects)public setPortraitSegmentationForegroundPosition:(CGRect) rect;
Sets the portrait segmentation foreground position.
Declared in ZegoEffects.h

Parameters

NameTypeDescription
rectCGRectThe position coordinates of the foreground.

Details

When using a custom background for portrait segmentation, you can adjust the position coordinates of the foreground through this interface.

enableFaceDetection:enable:

enableFaceDetection:enable:
- (ZegoEffects)public enableFaceDetection:(BOOL) enable;
Turn on face detection
Declared in ZegoEffects.h

Parameters

NameTypeDescription
enableBOOL

Details

After the face detection is started, the developer can obtain the face detection result by [OnFaceDetectionResult] in [ZegoEffectSetHandler], including the number of faces, face coordinates and so on.

enableFaceLifting:enable:

enableFaceLifting:enable:
- (ZegoEffects)public enableFaceLifting:(BOOL) enable;
Turn it on and your face will be slimmer and your chin will be thinner
Declared in ZegoEffects.h

Parameters

NameTypeDescription
enableBOOLWhether to enable the face-slimming feature; [true] means the face-slimming feature is activated; [false] means the face-slimming feature is turned off. The default value is [false].

Details

Turn it on and your face will be slimmer and your chin will be thinner

enableNoseNarrowing:enable:

enableNoseNarrowing:enable:
- (ZegoEffects)public enableNoseNarrowing:(BOOL) enable;
enable the thin nose function, you can call the [setNoseNarrowingParam] interface to set parameters.
Declared in ZegoEffects.h

Parameters

NameTypeDescription
enableBOOLTrue is used to turn on Thin Nose. Default is false

Details

enable the thin nose function, you can call the [setNoseNarrowingParam] interface to set parameters.

enableSmallMouth:enable:

enableSmallMouth:enable:
- (ZegoEffects)public enableSmallMouth:(BOOL) enable;
To enable the long mouth function, you can call the [SetSmallMouthParam] interface to set the parameters.
Declared in ZegoEffects.h

Parameters

NameTypeDescription
enableBOOLWhether to activate the small mouth feature; [true] means the small mouth feature is enabled; [false] means the small mouth feature is disabled. The default value is [false].

Details

To enable the long mouth function, you can call the [SetSmallMouthParam] interface to set the parameters.

processImageBuffer:buff:

processImageBuffer:buff:
- (void)processImageBuffer:(CVPixelBufferRef) buff;
process images, interface needs to pass in an image of type CVPixelBufferRef.
Declared in ZegoEffects.h

Parameters

NameTypeDescription
buffCVPixelBufferRefThe data of the video frame.
  • When to call: please call [initEnv] to initialize the engine environment before processing the image. If the engine environment is not initialized, the beauty will be invalid.

  • Caution: The input buff must be in the format of BGRA32 or RGBA32.

ZegoEffectsAcneRemovingParam

Developers can adjust the acne removal parameters through this category.

Details

Detailed description: The coefficient value of the acne removing parameter, which reflects the intensity of the effect through the coefficient value

Business scenario: One of the basic beauty effects

Calling timing/notification timing: passed when calling the setAcneRemovingParam() function

Related callback: The function onError will spit out the error code. The default normal value is 0.

Declared in ZegoEffectsDefines.h

Properties

intensity

intensity
public int intensity

Acne removing strength, default value is 90, and the range [0~100].

ZegoEffectsAdvancedConfig

Engine configuration class

Details

Must be called before Effects is created.

Declared in ZegoEffectsDefines.h

Properties

advancedConfig

advancedConfig
nonatomic, copy, nullable NSDictionary<NSString *, NSString *> * advancedConfig

Other special function switches,such as Render-Mode, Device-Performance-Level, etc. If not set, no special function will be used by default. Please contact ZEGO technical support before use.

ZegoEffectsBigEyesParam

Big Eye Parameters.

Details

Developers can modify the big eye intensity through this category.

Declared in ZegoEffectsDefines.h

Properties

intensity

intensity
public int intensity

Big eye intensity, value range [0~100].

ZegoEffectsBlurParam

Blur Parameters.

Details

Developers can modify the blur intensity through this class.

Declared in ZegoEffectsDefines.h

Properties

intensity

intensity
public int intensity

Blur intensity, value range [0~100].

ZegoEffectsBlusherParam

Developers can adjust the blusher parameters through this category.

Details

Developers can adjust the blusher parameters through this category.

Declared in ZegoEffectsDefines.h

Properties

intensity

intensity
public int intensity

Blusher intensity, range [0~100].

ZegoEffectsCheekParam

Blush parameters.

Details

Developers can modify the blush intensity and other parameters through this category.

Declared in ZegoEffectsDefines.h

Properties

intensity

intensity
public int intensity

Blush intensity, value range [0~100].

ZegoEffectsCheekboneSlimmingParam

Developers can adjust thin cheekbones parameters through this class.

Details

Developers can adjust thin cheekbones parameters through this class.

Declared in ZegoEffectsDefines.h

Properties

intensity

intensity
public int intensity

Cheekbone slimming strength, range [0~100].

ZegoEffectsChromaKeyParam

Chroma key parameter.

Details

Developers can set the chroma key parameters as needed.

Declared in ZegoEffectsDefines.h

Properties

similarity

similarity
public float similarity

Update the color tolerance, the larger the tolerance, the larger the range to be replaced, range [0~100], default 67.

smoothness

smoothness
public float smoothness

Updates the Edge Smoothing Index, the bigger the smoother, but the render will also be slower, range [0~100], default 80.

opacity

opacity
public int opacity

Update transparency, range [0~100], default 100 (opacity).

keyColor

keyColor
public int keyColor

Update the color to replace in format: BGR, range [0,0xFFFFFF], default 0x00FF00.

borderSize

borderSize
public int borderSize

update the edge pixel sampling radius. The larger the borderSize, the smoother the edge color transition and the slower the speed. The pixels at the junction of the background and the foreground often have residual green. Take the average value of nearby pixels as the new pixel value to remove the residual, range [ 0~100], default 1.

ZegoEffectsClarityParam

Developers can adjust the coefficient value of the clarity parameter.

Details

Detailed description: The reflects the intensity of the effect through the coefficient value.

Business scenario: One of the basic beauty effects

Calling timing/notification timing: passed when calling the setClarityParam() function.

Related callback: The function onError will spit out the error code. The default normal value is 0.

Declared in ZegoEffectsDefines.h

Properties

intensity

intensity
public int intensity

the larger the value, the greater the clarity,default value is 0, and the range is [0~100].

ZegoEffectsColoredcontactsParam

Developers can adjust the coloredcontacts parameters through this category.

Details

Developers can adjust the coloredcontacts parameters through this category.

Declared in ZegoEffectsDefines.h

Properties

intensity

intensity
public int intensity

Coloredcontacts intensity, range [0~100].

ZegoEffectsDarkCirclesRemovingParam

Developers can adjust the dark circles removal parameters through this category.

Details

Developers can adjust the dark circles removal parameters through this category.

Declared in ZegoEffectsDefines.h

Properties

intensity

intensity
public int intensity

Darkcircles removing strength, range [0~100].

ZegoEffectsEyelashesParam

Developers can adjust the eyelashes parameters through this category.

Details

Developers can adjust the eyelashes parameters through this category.

Declared in ZegoEffectsDefines.h

Properties

intensity

intensity
public int intensity

Eyelashes intensity, range [0~100].

ZegoEffectsEyelinerParam

Developers can adjust eyeliner parameters through this category.

Details

Developers can adjust eyeliner parameters through this category.

Declared in ZegoEffectsDefines.h

Properties

intensity

intensity
public int intensity

Eyeliner intensity, range [0~100].

ZegoEffectsEyesBrighteningParam

Bright eye parameters.

Details

Developers can use this class to set parameters such as brightness intensity.

Declared in ZegoEffectsDefines.h

Properties

intensity

intensity
public int intensity

Brightness intensity, range [0~100].

ZegoEffectsEyeshadowParam

Developers can adjust eye shadow properties through this class.

Details

Developers can adjust eye shadow properties through this class.

Declared in ZegoEffectsDefines.h

Properties

intensity

intensity
public int intensity

Detailed information: Eye shadow intensity, range [0~100].

ZegoEffectsFaceDetectionResult

Face detection data.

Details

Face detection data.

Declared in ZegoEffectsDefines.h

Properties

score

score
public float score

The confidence of the face, the greater the greater the probability is the face.

rect

rect
public CGRect rect

The rectangular frame where the face is located, completely includes the entire face, the unit is pixel, and the coordinate system is in the upper left corner of the input image.

ZegoEffectsFaceLiftingParam

Developers can adjust face-lifting parameters through this class.

Details

Developers can adjust face-lifting parameters through this class.

Declared in ZegoEffectsDefines.h

Properties

intensity

intensity
public int intensity

Face lean strength, range [-100~100].

ZegoEffectsFaceShorteningParam

Developers can adjust the small face parameters through this class.

Details

Developers can adjust the small face parameters through this class.

Declared in ZegoEffectsDefines.h

Properties

intensity

intensity
public int intensity

Face shortening strength, range [0~100].

ZegoEffectsFilterParam

Filter color style parameters.

Details

Filter color style parameters.

Declared in ZegoEffectsDefines.h

Properties

intensity

intensity
public int intensity

developers can adjust the filter strength through this property.

ZegoEffectsForeheadShorteningParam

Developers can use this type of adjustment to reduce the forehead height parameter.

Details

Developers can use this type of adjustment to reduce the forehead height parameter.

Declared in ZegoEffectsDefines.h

Properties

intensity

intensity
public int intensity

Forehead shortening strength, range [-100~100].

ZegoEffectsLipstickParam

Developers can adjust the lipstick parameters through this category.

Details

Developers can adjust the lipstick parameters through this category.

Declared in ZegoEffectsDefines.h

Properties

intensity

intensity
public int intensity

LIpstick intensity, range [0~100].

ZegoEffectsLongChinParam

Developers can use this class to adjust the chin of the face.

Details

Developers can use this class to adjust the chin of the face.

Declared in ZegoEffectsDefines.h

Properties

intensity

intensity
public int intensity

Long chin strength, range [-100 to 100].

ZegoEffectsMakeupParam

Developers can adjust the makeup parameters through this category.

Details

Developers can adjust the makeup parameters through this category.

Declared in ZegoEffectsDefines.h

Properties

intensity

intensity
public int intensity

Makeup intensity, range [0~100].

ZegoEffectsMandibleSlimmingParam

Developers can adjust thin mandible parameters through this class.

Details

Developers can adjust thin mandible parameters through this class.

Declared in ZegoEffectsDefines.h

Properties

intensity

intensity
public int intensity

mandible slimming strength, range [0~100].

ZegoEffectsMosaicParam

Mosaic parameters.

Details

Mosaic parameters.

Declared in ZegoEffectsDefines.h

Properties

intensity

intensity
public int intensity

Mosaic intensity [0~100].

type

type

Sets the Mosaic type. Default is triangle.

ZegoEffectsNoseLengtheningParam

Nose lengthening strength, range [-100~100].

Details

Nose lengthening strength, range [-100~100].

Declared in ZegoEffectsDefines.h

Properties

intensity

intensity
public int intensity

Nose lengthening strength, range [-100~100].

ZegoEffectsNoseNarrowingParam

Developers can adjust the skinny nose parameter with this class.

Details

Developers can adjust the skinny nose parameter with this class.

Declared in ZegoEffectsDefines.h

Properties

intensity

intensity
public int intensity

Thin nose intensity, range [0-100].

ZegoEffectsRosyParam

Developers can adjust rosy parameters through this category.

Details

Developers can adjust rosy parameters through this category.

Declared in ZegoEffectsDefines.h

Properties

intensity

intensity
public int intensity

Rosy intensity, range [0~100].

ZegoEffectsSharpenParam

Developers can adjust the sharpening parameters through this class.

Details

Developers can adjust the sharpening parameters through this class.

Declared in ZegoEffectsDefines.h

Properties

intensity

intensity
public int intensity

Sharpening intensity, range [0~100].

ZegoEffectsSkinColorParam

Developers can adjust the skin color parameters through this category.

Details

Detailed description: The coefficient value of the skin color parameter, which reflects the intensity of the effect through the coefficient value

Business scenario: One of the basic beauty effects

Calling timing/notification timing: First use setSkinColorResPath() to load the skin resource, and then pass the parameter when calling the setSkinColorParam() function.

Related callback: The function onError will spit out the error code. The default normal value is 0.

Declared in ZegoEffectsDefines.h

Properties

intensity

intensity
public int intensity

the skin color intensity, default value is 0,and the range [0~100].

ZegoEffectsSmallMouthParam

Developers can adjust thin mouth parameters through this class.

Details

Developers can adjust thin mouth parameters through this class.

Declared in ZegoEffectsDefines.h

Properties

intensity

intensity
public int intensity

Small mouth strength, range [-100~100].

ZegoEffectsSmoothParam

Developers can adjust the microdermabrasion parameters through this category.

Details

Developers can adjust the microdermabrasion parameters through this category.

Declared in ZegoEffectsDefines.h

Properties

intensity

intensity
public int intensity

Microdermabrasion intensity, range [0~100].

ZegoEffectsTeethWhiteningParam

Developers can adjust white teeth parameters through this category.

Details

Developers can adjust white teeth parameters through this category.

Declared in ZegoEffectsDefines.h

Properties

intensity

intensity
public int intensity

White tooth strength, range [0~100].

ZegoEffectsVideoFrameParam

Detailed video frame parameters.

Details

Detailed video frame parameters.

Declared in ZegoEffectsDefines.h

Properties

width

width
public int width

Video frame width, in pixels.

height

height
public int height

The height of the video frame, in pixels.

format

format

Video data frame format.

textureFormat

textureFormat
public ZegoEffectsTextureFormat textureFormat

Texture format, if you are transferring texture, you can specify the format of the corresponding texture, 2D texture or OES texture(Android-specific format).

ZegoEffectsWhitenParam

Developers can modify the whitening information through this category.

Details

Developers can modify the whitening parameters through this class.

Declared in ZegoEffectsDefines.h

Properties

intensity

intensity
public int intensity

Whitening intensity, range [0~100].

ZegoEffectsWrinklesRemovingParam

Developers can adjust the law pattern removal parameters through this type of adjustment.

Details

Developers can adjust the law pattern removal parameters through this type of adjustment.

Declared in ZegoEffectsDefines.h

Properties

intensity

intensity
public int intensity

Wrinkles removing strength, range [-100~100].

Previous

Function List

Next

Protocol

On this page

Back to top