AI Effects
On this page

Function Overview


ZEGOCLOUD SDK has a comprehensive global network coverage with key regional nodes, offering a rich set of APIs to provide clear and stable AI Effects services across multiple platforms.

Here is a brief introduction to the basic APIs.

MethodDescription
createCreating an Effects instance
getAuthInfoGets the SDK's authorized message. send authorized message and appID to apply for authentication file to ZEGO server.
getDeviceLevelGet the device phone performance level. Deploy before the Effects environment is initialized to obtain the effect capabilities corresponding to device performance.
getVersionGets the SDK's version number.
setAdvancedConfigEffects advanced function switch.
setResourcesSet effects static resources.
createCreating an Effects instance
createCreating an Effects instance
destroyDestroy the Effects Object.
setEventHandlerSets up the event notification callbacks that need to be handled. If the eventHandler is set to [null], all the callbacks set previously will be cleared.
initEnvInitialize the Effects engine environment
uninitEnvUninitializes the Effects engine environment
onErrorThe callback for obtaining error information.

Beauty

MethodDescription
enableAcneRemovingenable the acne removing function, you can set the acne parameters by calling the [setAcneRemovingParam] interface.
enableClarityenable the clarity function, you can set the clarity parameters by calling the [setClarityParam] interface.
enableDarkCirclesRemovingenable the darkcircles removing function, you can set the ruddy parameters by calling the [setDarkCirclesRemovingParam] interface.
enableSkinColorenable the skin color function
enableWrinklesRemovingEnable the wrinkles removing function, you can set the wrinkles removing parameters by calling the [setWrinklesRemovingParam] interface.
setAcneRemovingParamSet acne removing parameters
setClarityParamSet clarity parameters
setDarkCirclesRemovingParamSet the darkcircles removing parameters.
setSkinColorParamSet the skin color parameters.
setSkinColorResPathSet the skin resource path' parameters.
setWrinklesRemovingParamSet the wrinkles removing parameters.
enableRosyenable the ruddy function, you can set the ruddy parameters by calling the [setRosyParam] interface.
enableSharpenenable the sharpening function, you can call the [setSharpenParam] interface to set the sharpening parameters.
enableSmoothThe function of peeling is enabled, and the [setSmoothParam] interface can be called to set the peeling parameters.
setRosyParamset rosy parameters.
setSharpenParamSet the smooth parameters.
setSmoothParamSet the smooth parameters
enableWhitenWhen opened, the skin will become whiter.
setWhitenParamSet whitening parameters

Beauty

MethodDescription
enableCheekboneSlimmingenable the cheekbone slimming function, you can set the cheekbone slimming parameters by calling the [setCheekboneSlimmingParam] interface.
enableFaceShorteningenable the face shortening function, you can set the face shortening parameters by calling the [setFaceShorteningParam] interface.
enableForeheadShorteningenable the forehead shortening function, you can set the forehead shortening parameters by calling the [setForeheadShorteningParam] interface.
enableMandibleSlimmingenable the mandible slimming function, you can set the mandible slimming parameters by calling the [setMandibleSlimmingParam] interface.
enableNoseLengtheningenable the nose lengthening function, you can set the nose lengthening parameters by calling the [setNoseLengtheningParam] interface.
setCheekboneSlimmingParamSet the cheekbone slimming parameters.
setFaceShorteningParamSet the face shortening parameters.
setForeheadShorteningParamSet the forehead shortening parameters.
setMandibleSlimmingParamSet the mandible slimming parameters.
setNoseLengtheningParamSet the nose lengthening parameters.
enableEyesBrighteningenable bright eyes, developers can set the bright eyes parameter by calling [seteyesbrighteningParam].
enableLongChinLong chin function is enabled, and parameters of long chin can be set by calling [SetLongChinParam] interface.
setEyesBrighteningParamSet the brightness parameters.
setLongChinParamSet long chin parameters.
setNoseNarrowingParamSet thin nose parameters.
setSmallMouthParamSet the small mouth parameters.
setTeethWhiteningParamSet the white tooth parameters.
enableBigEyesEyes will get bigger when enabled
setBigEyesParamSet the eye enlargement parameters.
enableTeethWhiteningOpen the teeth will become more white, you can set some parameters through the [setTeethWhiteningParam] interface.
setFaceLiftingParamSet the thin face parameters
enableFaceLiftingTurn it on and your face will be slimmer and your chin will be thinner
enableNoseNarrowingenable the thin nose function, you can call the [setNoseNarrowingParam] interface to set parameters.
enableSmallMouthTo enable the long mouth function, you can call the [SetSmallMouthParam] interface to set the parameters.

Makeups

MethodDescription
setBlusherSet the blusher resource, set [null] to remove the blusher by default.
setBlusherParamSet blusher parameters.
setColoredcontactsSet the coloredcontacts resource, set [null] to remove the coloredcontacts by default.
setColoredcontactsParamSet coloredcontacts parameters.
setEyelinerSet the eyeliner resource, set [null] to remove the eyeliner by default.
setMakeupSet the makeup resource, set [null] to remove the makeup by default.
setMakeupParamSet makeup parameters.
setEyelashesSet the eyelashes resource, set [null] to remove the eyelashes by default.
setEyelashesParamSet eyelashes parameters.
setEyelinerParamSet eyeliner parameters.
setEyeshadowSet the eyeshadow resource, set [null] to remove the eyeshadow by default.
setEyeshadowParamSet eyeshadow parameters.
setLipstickSet up lipstick resources, set [null] to remove the lipstick by default.
setLipstickParamSet lipstick parameters.

Background segmentation

MethodDescription
enableChromaKeyEnable green screen segmentation.
setChromaKeyBackgroundTextureSet the green screen split custom background.
setChromaKeyBackgroundPathSet the green screen custom background path.
setChromaKeyParamSets the green screen partition parameters
enableChromaKeyBackgroundWhen 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.
enableChromaKeyBackgroundBlurOpen the green screen background fuzzy segmentation.
enableChromaKeyBackgroundMosaicTurn on the green background Mosaic. The SDK engine will turn the green background into a Mosaic after startup.
enablePortraitSegmentationWhen AI portrait segmentation is enabled.
enablePortraitSegmentationBackgroundTurn on AI Portrait Segmentation Custom Background.
enablePortraitSegmentationBackgroundBlurOpen ai portrait background segmentation fuzzy.
enablePortraitSegmentationBackgroundMosaicOpen the ai portrait background segmentation Mosaic.
setChromaKeyBackgroundBlurParamSets the green screen background blur parameter
setChromaKeyBackgroundBufferSet the green screen split custom background.
setChromaKeyBackgroundMosaicParamSet the background mosaic parameters of the green screen segmentation.
setChromaKeyForegroundPositionSets the green screen segmentation foreground position.
setPortraitSegmentationBackgroundBlurParamSet AI portrait segmentation background blur parameters
setPortraitSegmentationBackgroundBufferSet up custom backgrounds for AI portrait segmentation
setPortraitSegmentationBackgroundMosaicParamSets portrait split background Mosaic parameters
setPortraitSegmentationBackgroundPathSet custom background path for AI portrait segmentation.
setPortraitSegmentationBackgroundTextureSet the AI portrait segmentation to customize the background.
setPortraitSegmentationForegroundPositionSets the portrait segmentation foreground position.

Face Detection

MethodDescription
enableFaceDetectionTurn on face detection
onFaceDetectionResultFace detection callback.

Pendant

MethodDescription
setPendantSet the pendant.

Filter

MethodDescription
setFilterSet the filter resource, set [null] to remove the filter by default.
setFilterParamSet filter parameters

Rendering

MethodDescription
processImageBufferRGBTo process images, the interface needs to pass in images of type Buffer, which only supports data in the RGB color space.
processImageBufferYUVTo process images, the interface needs to pass in images of type Buffer, which only supports data in the YUV color space.
processTextureTo process images, the interface needs to pass in an image type of Texture.

List of obsolete interfaces

MethodDescription
setModelsSet AI model, support multiple models at the same time.

Previous

Error Codes

Next

Class

On this page

Back to top