Class
ZegoEffects
AI Effect function
Details
AI Effect function
Declared in ZegoEffects.java
Methods
create
public ZegoEffects create(long appid, String appSign)ZegoEffects.javaParameters
| Name | Type | Description |
|---|---|---|
| appid | long | appid |
| appSign | String | 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
public String getAuthInfo(String appSign, Context context)ZegoEffects.javaParameters
| Name | Type | Description |
|---|---|---|
| appSign | String | appSign. |
| context | Context | context. |
Details
Gets the SDK's authorized message. send authorized message and appID to apply for authentication file to ZEGO server.
Return
authorizedInfo.
getVersion
public String getVersion()ZegoEffects.javaWhen 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
public void setAdvancedConfig(ZegoEffectsAdvancedConfig config)ZegoEffects.javaParameters
| Name | Type | Description |
|---|---|---|
| config | ZegoEffectsAdvancedConfig | effects Advanced configuration. Such as Render-Mode, Device-Performance-Level, etc. |
- When to call: Before you create the engine.
setResources
public void setResources(ArrayList<String> resourceInfoList)ZegoEffects.javaParameters
| Name | Type | Description |
|---|---|---|
| resourceInfoList | ArrayList<String> | 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
public ZegoEffects create(String license, Context context)ZegoEffects.javaParameters
| Name | Type | Description |
|---|---|---|
| license | String | Authentication certificate file. |
| context | Context | Context. |
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.
create
public void create(long appid, String appSign, IAsyncEffectCallback effectCallback, Context context)ZegoEffects.javaParameters
| Name | Type | Description |
|---|---|---|
| appid | long | SDK authentication Appid. |
| appSign | String | SDK authentication AppSign. |
| effectCallback | IAsyncEffectCallback | Create the result callback of the instance request. The callback contains the ZegoEffects object and the authentication error code. |
| context | Context | Context. |
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
public void setModels(ArrayList<String> modelInfoList)ZegoEffects.javaParameters
| Name | Type | Description |
|---|---|---|
| modelInfoList | ArrayList<String> | 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
public ZegoEffects enableAcneRemoving(boolean enable)ZegoEffects.javaParameters
| Name | Type | Description |
|---|---|---|
| enable | boolean | Whether 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
public ZegoEffects enableCheekboneSlimming(boolean enable)ZegoEffects.javaParameters
| Name | Type | Description |
|---|---|---|
| enable | boolean | Whether 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
public ZegoEffects enableClarity(boolean enable)ZegoEffects.javaParameters
| Name | Type | Description |
|---|---|---|
| enable | boolean | Whether 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
public ZegoEffects enableDarkCirclesRemoving(boolean enable)ZegoEffects.javaParameters
| Name | Type | Description |
|---|---|---|
| enable | boolean | enable 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
public ZegoEffects enableFaceShortening(boolean enable)ZegoEffects.javaParameters
| Name | Type | Description |
|---|---|---|
| enable | boolean | Whether 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
public ZegoEffects enableForeheadShortening(boolean enable)ZegoEffects.javaParameters
| Name | Type | Description |
|---|---|---|
| enable | boolean | Whether 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
public ZegoEffects enableMandibleSlimming(boolean enable)ZegoEffects.javaParameters
| Name | Type | Description |
|---|---|---|
| enable | boolean | Whether 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
public ZegoEffects enableNoseLengthening(boolean enable)ZegoEffects.javaParameters
| Name | Type | Description |
|---|---|---|
| enable | boolean | Whether 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
public ZegoEffects enableSkinColor(boolean enable)ZegoEffects.javaParameters
| Name | Type | Description |
|---|---|---|
| enable | boolean | Whether 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
public ZegoEffects enableWrinklesRemoving(boolean enable)ZegoEffects.javaParameters
| Name | Type | Description |
|---|---|---|
| enable | boolean | Whether 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
public ZegoEffectsDeviceLevel getDeviceLevel()ZegoEffects.javaWhen 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
public ZegoEffects setAcneRemovingParam(ZegoEffectsAcneRemovingParam param)ZegoEffects.javaParameters
| Name | Type | Description |
|---|---|---|
| param | ZegoEffectsAcneRemovingParam | the acne removing parameters. |
Details
Set acne removing parameters.
setBlusher
public ZegoEffects setBlusher(String path)ZegoEffects.javaParameters
| Name | Type | Description |
|---|---|---|
| path | String | The 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
public ZegoEffects setBlusherParam(ZegoEffectsBlusherParam param)ZegoEffects.javaParameters
| Name | Type | Description |
|---|---|---|
| param | ZegoEffectsBlusherParam | blusher parameters. |
Details
Set blusher parameters.
setCheekboneSlimmingParam
public ZegoEffects setCheekboneSlimmingParam(ZegoEffectsCheekboneSlimmingParam param)ZegoEffects.javaParameters
| Name | Type | Description |
|---|---|---|
| param | ZegoEffectsCheekboneSlimmingParam | Functional parameters of thin cheekbones. |
Details
Set the cheekbone slimming parameters.
setClarityParam
public ZegoEffects setClarityParam(ZegoEffectsClarityParam param)ZegoEffects.javaParameters
| Name | Type | Description |
|---|---|---|
| param | ZegoEffectsClarityParam | the clarity parameters. |
Details
Set clarity parameters
setColoredcontacts
void setColoredcontacts(String path)ZegoEffects.javaParameters
| Name | Type | Description |
|---|---|---|
| path | String | Absolute 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
ZegoEffects setColoredcontactsParam(ZegoEffectsColoredcontactsParam param)ZegoEffects.javaParameters
| Name | Type | Description |
|---|---|---|
| param | ZegoEffectsColoredcontactsParam | coloredcontacts parameters. |
Details
Set coloredcontacts parameters.
setDarkCirclesRemovingParam
public ZegoEffects setDarkCirclesRemovingParam(ZegoEffectsDarkCirclesRemovingParam param)ZegoEffects.javaParameters
| Name | Type | Description |
|---|---|---|
| param | ZegoEffectsDarkCirclesRemovingParam | Remove dark circles function parameters. |
Details
Set the darkcircles removing parameters.
setEyeliner
public ZegoEffects setEyeliner(String path)ZegoEffects.javaParameters
| Name | Type | Description |
|---|---|---|
| path | String | The 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
public ZegoEffects setFaceShorteningParam(ZegoEffectsFaceShorteningParam param)ZegoEffects.javaParameters
| Name | Type | Description |
|---|---|---|
| param | ZegoEffectsFaceShorteningParam | Small face function parameters. |
Details
Set the face shortening parameters.
setForeheadShorteningParam
ZegoEffects setForeheadShorteningParam(ZegoEffectsForeheadShorteningParam param)ZegoEffects.javaParameters
| Name | Type | Description |
|---|---|---|
| param | ZegoEffectsForeheadShorteningParam | Reduce forehead height function parameters. |
Details
Set the forehead shortening parameters.
setMakeup
public ZegoEffects setMakeup(String path)ZegoEffects.javaParameters
| Name | Type | Description |
|---|---|---|
| path | String | The 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
public ZegoEffects setMakeupParam(ZegoEffectsMakeupParam param)ZegoEffects.javaParameters
| Name | Type | Description |
|---|---|---|
| param | ZegoEffectsMakeupParam | makeup parameters. |
Details
Set makeup parameters.
setMandibleSlimmingParam
public ZegoEffects setMandibleSlimmingParam(ZegoEffectsMandibleSlimmingParam param)ZegoEffects.javaParameters
| Name | Type | Description |
|---|---|---|
| param | ZegoEffectsMandibleSlimmingParam | Thin mandible parameters. |
Details
Set the mandible slimming parameters.
setNoseLengtheningParam
public ZegoEffects setNoseLengtheningParam(ZegoEffectsNoseLengtheningParam param)ZegoEffects.javaParameters
| Name | Type | Description |
|---|---|---|
| param | ZegoEffectsNoseLengtheningParam | noselengthening parameters. |
Details
Set the nose lengthening parameters.
setSkinColorParam
public ZegoEffects setSkinColorParam(ZegoEffectsSkinColorParam param)ZegoEffects.javaParameters
| Name | Type | Description |
|---|---|---|
| param | ZegoEffectsSkinColorParam | the skin color strengthen parameters. |
Details
Set the skin color parameters.
setSkinColorResPath
public ZegoEffects setSkinColorResPath(String bundlePath)ZegoEffects.javaParameters
| Name | Type | Description |
|---|---|---|
| bundlePath | String | 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
public ZegoEffects setWrinklesRemovingParam(ZegoEffectsWrinklesRemovingParam param)ZegoEffects.javaParameters
| Name | Type | Description |
|---|---|---|
| param | ZegoEffectsWrinklesRemovingParam | Remove dark circles function parameters. |
Details
Set the wrinkles removing parameters.
destroy
public void destroy()ZegoEffects.javaUsed to release resources used by the SDK.
setEventHandler
public ZegoEffects setEventHandler(ZegoEffectsEventHandler eventHandler)ZegoEffects.javaParameters
| Name | Type | Description |
|---|---|---|
| eventHandler | 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 [null], all the callbacks set previously will be cleared.
enableEyesBrightening
public ZegoEffects enableEyesBrightening(boolean enable)ZegoEffects.javaParameters
| Name | Type | Description |
|---|---|---|
| enable | boolean | Whether 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
public ZegoEffects enableLongChin(boolean enable)ZegoEffects.javaParameters
| Name | Type | Description |
|---|---|---|
| enable | boolean | Whether 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
public ZegoEffects enableRosy(boolean enable)ZegoEffects.javaParameters
| Name | Type | Description |
|---|---|---|
| enable | boolean | Whether 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
public ZegoEffects enableSharpen(boolean enable)ZegoEffects.javaParameters
| Name | Type | Description |
|---|---|---|
| enable | boolean | Whether 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
public ZegoEffects enableSmooth(boolean enable)ZegoEffects.javaParameters
| Name | Type | Description |
|---|---|---|
| enable | boolean | Whether 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
public ZegoEffects setEyelashes(String path)ZegoEffects.javaParameters
| Name | Type | Description |
|---|---|---|
| path | String | Absolute 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
public ZegoEffects setEyelashesParam(ZegoEffectsEyelashesParam param)ZegoEffects.javaParameters
| Name | Type | Description |
|---|---|---|
| param | ZegoEffectsEyelashesParam | Eyelashes parameters. |
Details
Set eyelashes parameters.
setEyelinerParam
public ZegoEffects setEyelinerParam(ZegoEffectsEyelinerParam param)ZegoEffects.javaParameters
| Name | Type | Description |
|---|---|---|
| param | ZegoEffectsEyelinerParam | Eyeliner parameters. |
Details
Set eyeliner parameters.
setEyesBrighteningParam
public ZegoEffects setEyesBrighteningParam(ZegoEffectsEyesBrighteningParam param)ZegoEffects.javaParameters
| Name | Type | Description |
|---|---|---|
| param | ZegoEffectsEyesBrighteningParam | Set the brightness parameters. |
Details
Set the brightness parameters.
setEyeshadow
public ZegoEffects setEyeshadow(String path)ZegoEffects.javaParameters
| Name | Type | Description |
|---|---|---|
| path | String | The 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
public ZegoEffects setEyeshadowParam(ZegoEffectsEyeshadowParam param)ZegoEffects.javaParameters
| Name | Type | Description |
|---|---|---|
| param | ZegoEffectsEyeshadowParam | Eye shadow parameters. |
Details
Set eyeshadow parameters.
setFilter
public ZegoEffects setFilter(String path)ZegoEffects.javaParameters
| Name | Type | Description |
|---|---|---|
| path | String | 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
public ZegoEffects setFilterParam(ZegoEffectsFilterParam param)ZegoEffects.javaParameters
| Name | Type | Description |
|---|---|---|
| param | ZegoEffectsFilterParam | Filter function parameters. |
Details
Set filter parameters
setLipstick
public ZegoEffects setLipstick(String path)ZegoEffects.javaParameters
| Name | Type | Description |
|---|---|---|
| path | String | Absolute 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
public ZegoEffects setLipstickParam(ZegoEffectsLipstickParam param)ZegoEffects.javaParameters
| Name | Type | Description |
|---|---|---|
| param | ZegoEffectsLipstickParam | Lipstick parameters. |
Details
Set lipstick parameters.
setLongChinParam
public ZegoEffects setLongChinParam(ZegoEffectsLongChinParam param)ZegoEffects.javaParameters
| Name | Type | Description |
|---|---|---|
| param | ZegoEffectsLongChinParam | Set long chin parameters. |
Details
Set long chin parameters.
setNoseNarrowingParam
public ZegoEffects setNoseNarrowingParam(ZegoEffectsNoseNarrowingParam param)ZegoEffects.javaParameters
| Name | Type | Description |
|---|---|---|
| param | ZegoEffectsNoseNarrowingParam | Nose slimming parameters. |
Details
Set thin nose parameters.
setPendant
public ZegoEffects setPendant(String path)ZegoEffects.javaParameters
| Name | Type | Description |
|---|---|---|
| path | String | 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 [null] The pendant may cover some beauty effects
setRosyParam
public ZegoEffects setRosyParam(ZegoEffectsRosyParam param)ZegoEffects.javaParameters
| Name | Type | Description |
|---|---|---|
| param | ZegoEffectsRosyParam | Rosy cheeks function parameters. |
Details
set rosy parameters.
setSharpenParam
public ZegoEffects setSharpenParam(ZegoEffectsSharpenParam param)ZegoEffects.javaParameters
| Name | Type | Description |
|---|---|---|
| param | ZegoEffectsSharpenParam | The parameter of sharpen. |
Details
Set the smooth parameters.
setSmallMouthParam
public ZegoEffects setSmallMouthParam(ZegoEffectsSmallMouthParam param)ZegoEffects.javaParameters
| Name | Type | Description |
|---|---|---|
| param | ZegoEffectsSmallMouthParam | "Small mouth function parameters." |
Details
Set the small mouth parameters.
setSmoothParam
public ZegoEffects setSmoothParam(ZegoEffectsSmoothParam param)ZegoEffects.javaParameters
| Name | Type | Description |
|---|---|---|
| param | ZegoEffectsSmoothParam | Skin smoothing function parameters. |
Details
Set the smooth parameters
setTeethWhiteningParam
public ZegoEffects setTeethWhiteningParam(ZegoEffectsTeethWhiteningParam param)ZegoEffects.javaParameters
| Name | Type | Description |
|---|---|---|
| param | ZegoEffectsTeethWhiteningParam | Teeth whitening function parameters. |
Details
Set the white tooth parameters.
enableBigEyes
public ZegoEffects enableBigEyes(boolean enable)ZegoEffects.javaParameters
| Name | Type | Description |
|---|---|---|
| enable | boolean | Whether 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
public ZegoEffects setBigEyesParam(ZegoEffectsBigEyesParam param)ZegoEffects.javaParameters
| Name | Type | Description |
|---|---|---|
| param | ZegoEffectsBigEyesParam | The eye enlargement parameter |
Details
Set the eye enlargement parameter
enableTeethWhitening
public ZegoEffects enableTeethWhitening(boolean enable)ZegoEffects.javaParameters
| Name | Type | Description |
|---|---|---|
| enable | boolean | Whether 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
public ZegoEffects enableWhiten(boolean enable)ZegoEffects.javaParameters
| Name | Type | Description |
|---|---|---|
| enable | boolean | Whether 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
public ZegoEffects setWhitenParam(ZegoEffectsWhitenParam param)ZegoEffects.javaParameters
| Name | Type | Description |
|---|---|---|
| param | ZegoEffectsWhitenParam | whitening parameters |
Details
Set whitening parameters
initEnv
public void initEnv(int width, int height)ZegoEffects.javaParameters
| Name | Type | Description |
|---|---|---|
| width | int | width of picture. |
| height | int | Height of the picture. |
Details
Before processing image or video data, you need to call this interface to initialize the effects engine environment. If you use texture for image processing, you need to call this interface on the GL thread, otherwise it will cause the beauty to fail. In the first initialization, if ai-related functions are used, this interface will be time-consuming, please do not call this interface on the main thread, otherwise it will cause the UI thread to stall.
setFaceLiftingParam
public ZegoEffects setFaceLiftingParam(ZegoEffectsFaceLiftingParam param)ZegoEffects.javaParameters
| Name | Type | Description |
|---|---|---|
| param | ZegoEffectsFaceLiftingParam | The thin face parameters |
Details
Set the thin face parameters
uninitEnv
public void uninitEnv()ZegoEffects.javaWhen 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
public ZegoEffects enableChromaKey(boolean enable)ZegoEffects.javaParameters
| Name | Type | Description |
|---|---|---|
| enable | boolean | Whether 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.
setChromaKeyBackgroundTexture
public ZegoEffects setChromaKeyBackgroundTexture(int textureID, ZegoEffectsVideoFrameParam param, ZegoEffectsScaleMode mode)ZegoEffects.javaParameters
| Name | Type | Description |
|---|---|---|
| textureID | int | Texture ID, which the SDK uses to get the Texture data. |
| param | ZegoEffectsVideoFrameParam | Data frame format. |
| mode | ZegoEffectsScaleMode | View mode. |
Details
Set the green screen split custom background.
setChromaKeyBackgroundPath
public ZegoEffects setChromaKeyBackgroundPath(String imagePath, ZegoEffectsScaleMode mode)ZegoEffects.javaParameters
| Name | Type | Description |
|---|---|---|
| imagePath | String | Image path. |
| mode | ZegoEffectsScaleMode | View 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
public ZegoEffects setChromaKeyParam(ZegoEffectsChromaKeyParam param)ZegoEffects.javaParameters
| Name | Type | Description |
|---|---|---|
| param | ZegoEffectsChromaKeyParam | Green screen segmentation function parameters. |
Details
Developers can adjust green screen tolerance, key colors and other parameters through this interface.
enableChromaKeyBackground
public ZegoEffects enableChromaKeyBackground(boolean enable)ZegoEffects.javaParameters
| Name | Type | Description |
|---|---|---|
| enable | boolean |
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
public ZegoEffects enableChromaKeyBackgroundBlur(boolean enable)ZegoEffects.javaParameters
| Name | Type | Description |
|---|---|---|
| enable | boolean | Whether 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
public ZegoEffects enableChromaKeyBackgroundMosaic(boolean enable)ZegoEffects.javaParameters
| Name | Type | Description |
|---|---|---|
| enable | boolean | Whether 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
public ZegoEffects enablePortraitSegmentation(boolean enable)ZegoEffects.javaParameters
| Name | Type | Description |
|---|---|---|
| enable | boolean | Whether 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
public ZegoEffects enablePortraitSegmentationBackground(boolean enable)ZegoEffects.javaParameters
| Name | Type | Description |
|---|---|---|
| enable | boolean | Whether 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
public ZegoEffects enablePortraitSegmentationBackgroundBlur(boolean enable)ZegoEffects.javaParameters
| Name | Type | Description |
|---|---|---|
| enable | boolean | Whether 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
public ZegoEffects enablePortraitSegmentationBackgroundMosaic(boolean enable)ZegoEffects.javaParameters
| Name | Type | Description |
|---|---|---|
| enable | boolean | Whether 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
public ZegoEffects setChromaKeyBackgroundBlurParam(ZegoEffectsBlurParam param)ZegoEffects.javaParameters
| Name | Type | Description |
|---|---|---|
| param | ZegoEffectsBlurParam | Green 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
public ZegoEffects setChromaKeyBackgroundBuffer(byte[] buffer, int bufferLength, ZegoEffectsVideoFrameParam param, ZegoEffectsScaleMode mode)ZegoEffects.javaParameters
| Name | Type | Description |
|---|---|---|
| buffer | byte[] | Picture frame data. |
| bufferLength | int | Length of image frame data. |
| param | ZegoEffectsVideoFrameParam | Video frame parameters. |
| mode | ZegoEffectsScaleMode | View 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
public ZegoEffects setChromaKeyBackgroundMosaicParam(ZegoEffectsMosaicParam param)ZegoEffects.javaParameters
| Name | Type | Description |
|---|---|---|
| param | ZegoEffectsMosaicParam | Mosaic parameters. |
Details
You need to call [enableChromaKeyBackgroundMosaic] enable background Mosaic after the background of interface Settings to take effect.
setChromaKeyForegroundPosition
public ZegoEffects setChromaKeyForegroundPosition(ZegoEffectsRect rect)ZegoEffects.javaParameters
| Name | Type | Description |
|---|---|---|
| rect | ZegoEffectsRect |
Details
When using a custom background for the green screen segmentation, you can adjust the position coordinates of the foreground through this interface.
setPortraitSegmentationBackgroundBlurParam
public ZegoEffects setPortraitSegmentationBackgroundBlurParam(ZegoEffectsBlurParam param)ZegoEffects.javaParameters
| Name | Type | Description |
|---|---|---|
| param | ZegoEffectsBlurParam | Portrait 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
public ZegoEffects setPortraitSegmentationBackgroundBuffer(byte[] buffer, int bufferLength, ZegoEffectsVideoFrameParam param, ZegoEffectsScaleMode mode)ZegoEffects.javaParameters
| Name | Type | Description |
|---|---|---|
| buffer | byte[] | Picture frame data. |
| bufferLength | int | Length of picture frame data. |
| param | ZegoEffectsVideoFrameParam | Picture frame format. |
| mode | ZegoEffectsScaleMode | View 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
public ZegoEffects setPortraitSegmentationBackgroundMosaicParam(ZegoEffectsMosaicParam param)ZegoEffects.javaParameters
| Name | Type | Description |
|---|---|---|
| param | ZegoEffectsMosaicParam | Mosaic parameters. |
Details
You need to call [enablePortraitSegmentationBackgroundMosaic] enable background Mosaic after the background of interface Settings to take effect.
setPortraitSegmentationBackgroundPath
public ZegoEffects setPortraitSegmentationBackgroundPath(String imagePath, ZegoEffectsScaleMode mode)ZegoEffects.javaParameters
| Name | Type | Description |
|---|---|---|
| imagePath | String | Image path. |
| mode | ZegoEffectsScaleMode | View mode. |
Details
When using a custom background, you need to call [enablePortraitSegmentationBackground] enable custom background after the background of interface Settings to take effect.
setPortraitSegmentationBackgroundTexture
public ZegoEffects setPortraitSegmentationBackgroundTexture(int textureID, ZegoEffectsVideoFrameParam param, ZegoEffectsScaleMode mode)ZegoEffects.javaParameters
| Name | Type | Description |
|---|---|---|
| textureID | int | The SDK retrieves the current video data from this texture ID. |
| param | ZegoEffectsVideoFrameParam | Video frame format. |
| mode | ZegoEffectsScaleMode | View mode. |
Details
When using a custom background, you need to call [enablePortraitSegmentationBackground] enable custom background after the background of interface Settings to take effect. If the texture is decoded from video, you need to call this interface again when the video texture is updated to refresh the background. This interface must be called in the GL environment where the texture is generated, so that the SDK can read the texture content.
setPortraitSegmentationForegroundPosition
public ZegoEffects setPortraitSegmentationForegroundPosition(ZegoEffectsRect rect)ZegoEffects.javaParameters
| Name | Type | Description |
|---|---|---|
| rect | ZegoEffectsRect | The 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
public ZegoEffects enableFaceDetection(boolean enable)ZegoEffects.javaParameters
| Name | Type | Description |
|---|---|---|
| enable | boolean |
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
public ZegoEffects enableFaceLifting(boolean enable)ZegoEffects.javaParameters
| Name | Type | Description |
|---|---|---|
| enable | boolean | Whether 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
public ZegoEffects enableNoseNarrowing(boolean enable)ZegoEffects.javaParameters
| Name | Type | Description |
|---|---|---|
| enable | boolean | True 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
public ZegoEffects enableSmallMouth(boolean enable)ZegoEffects.javaParameters
| Name | Type | Description |
|---|---|---|
| enable | boolean | Whether 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.
processImageBufferRGB
public void processImageBufferRGB(byte[] data, int dataLength, ZegoEffectsVideoFrameParam param)ZegoEffects.javaParameters
| Name | Type | Description |
|---|---|---|
| data | byte[] | The data of the video frame. |
| dataLength | int | The length of the data. |
| param | ZegoEffectsVideoFrameParam | The parameters of the video frame. |
Details
please call [initEnv] to initialize the engine environment before processing the image. If the engine environment is not initialized, the beauty will be invalid.
processImageBufferYUV
public void processImageBufferYUV(ByteBuffer[] data, int[] dataLength, ZegoEffectsVideoFrameParam param)ZegoEffects.javaParameters
| Name | Type | Description |
|---|---|---|
| data | ByteBuffer[] | data The raw data of the video frame, I420 needs to consider data[0,1,2]. |
| dataLength | int[] | dataLength data length, I420 need to consider dataLength [0,1,2]. |
| param | ZegoEffectsVideoFrameParam | Video frame parameters. |
Details
please call [initEnv] to initialize the engine environment before processing the image. If the engine environment is not initialized, the beauty will be invalid.
processTexture
public int processTexture(int texture_id, ZegoEffectsVideoFrameParam param)ZegoEffects.javaParameters
| Name | Type | Description |
|---|---|---|
| texture_id | int | Texture ID, which the SDK uses to get the Texture data |
| param | ZegoEffectsVideoFrameParam | Video frame parameters. |
Details
Please call [initEnv] to initialize the engine environment before processing the image. If the engine environment is not initialized, the beauty will be invalid.
Return
Texture ID after effects are processed.
ZegoEffectsAdvancedConfig
Engine configuration class
Details
Must be called before Effects is created.
Declared in entity/ZegoEffectsAdvancedConfig.java
Properties
advancedConfig
public HashMap<String, String> advancedConfigOther 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 entity/ZegoEffectsBigEyesParam.java
Properties
intensity
public int intensityBig eye intensity, value range [0~100].
ZegoEffectsBlurParam
Blur Parameters.
Details
Developers can modify the blur intensity through this class.
Declared in entity/ZegoEffectsBlurParam.java
Properties
intensity
public int intensityBlur 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 entity/ZegoEffectsBlusherParam
Properties
intensity
public int intensityBlusher intensity, range [0~100].
ZegoEffectsCheekParam
Blush parameters.
Details
Developers can modify the blush intensity and other parameters through this category.
Declared in entity/ZegoEffectsCheekParam.java
Properties
intensity
public int intensityBlush 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 entity/ZegoEffectsCheekboneSlimmingParam.java
Properties
intensity
public int intensityCheekbone slimming strength, range [0~100].
ZegoEffectsChromaKeyParam
Chroma key parameter.
Details
Developers can set the chroma key parameters as needed.
Declared in entity/ZegoEffectsChromaKeyParam.java
Properties
similarity
public float similarityUpdate the color tolerance, the larger the tolerance, the larger the range to be replaced, range [0~100], default 67.
smoothness
public float smoothnessUpdates the Edge Smoothing Index, the bigger the smoother, but the render will also be slower, range [0~100], default 80.
opacity
public int opacityUpdate transparency, range [0~100], default 100 (opacity).
keyColor
public int keyColorUpdate the color to replace in format: BGR, range [0,0xFFFFFF], default 0x00FF00.
borderSize
public int borderSizeupdate 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.
ZegoEffectsColoredcontactsParam
Developers can adjust the coloredcontacts parameters through this category.
Details
Developers can adjust the coloredcontacts parameters through this category.
Declared in entity/ZegoEffectsColoredcontactsParam
Properties
intensity
public int intensityColoredcontacts 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 entity/ZegoEffectsDarkCirclesRemovingParam.java
Properties
intensity
public int intensityDarkcircles removing strength, range [0~100].
ZegoEffectsEventHandler
Callback function
Details
Containing AI Effect callback functions.
Declared in callback/ZegoEffectsEventHandler.java
Methods
onError
public void onError(ZegoEffects effects, int errorCode, String desc)callback/ZegoEffectsEventHandler.javaParameters
| Name | Type | Description |
|---|---|---|
| effects | ZegoEffects | [in/out] The handle of the instance. |
| errorCode | int | Engine error code. |
| desc | String | Engine error code description. |
Details
When the SDK functions are not used correctly, the callback prompts for detailed error information.
onFaceDetectionResult
public void onFaceDetectionResult(ZegoEffectsFaceDetectionResult[] results, ZegoEffects effects)callback/ZegoEffectsEventHandler.javaParameters
| Name | Type | Description |
|---|---|---|
| results | ZegoEffectsFaceDetectionResult[] | Face result. |
| effects | ZegoEffects | effects |
Details
The developer can start face detection through [EnableFacedetection], and the SDK will return the detected face data through this callback.
ZegoEffectsEyelashesParam
Developers can adjust the eyelashes parameters through this category.
Details
Developers can adjust the eyelashes parameters through this category.
Declared in entity/ZegoEffectsEyelashesParam
Properties
intensity
public int intensityEyelashes intensity, range [0~100].
ZegoEffectsEyelinerParam
Developers can adjust eyeliner parameters through this category.
Details
Developers can adjust eyeliner parameters through this category.
Declared in entity/ZegoEffectsEyelinerParam.java
Properties
intensity
public int intensityEyeliner intensity, range [0~100].
ZegoEffectsEyesBrighteningParam
Bright eye parameters.
Details
Developers can use this class to set parameters such as brightness intensity.
Declared in entity/ZegoEffectsEyesBrighteningParam.java
Properties
intensity
public int intensityBrightness 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 entity/ZegoEffectsEyeshadowParam.java
Properties
intensity
public int intensityDetailed information: Eye shadow intensity, range [0~100].
ZegoEffectsFaceDetectionResult
Face detection data.
Details
Face detection data.
Declared in entity/ZegoEffectsFaceDetectionResult.java
Properties
score
public float scoreThe confidence of the face, the greater the greater the probability is the face.
rect
public ZegoEffectsRect rectThe 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 entity/ZegoEffectsFaceLiftingParam.java
Properties
intensity
public int intensityFace 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 entity/ZegoEffectsFaceShorteningParam.java
Properties
intensity
public int intensityFace shortening strength, range [0~100].
ZegoEffectsFilterParam
Filter color style parameters.
Details
Filter color style parameters.
Declared in entity/ZegoEffectsFilterParam.java
Properties
intensity
public int intensitydevelopers 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 entity/ZegoEffectsForeheadShorteningParam.java
Properties
intensity
public int intensityForehead 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 entity/ZegoEffectsLipstickParam
Properties
intensity
public int intensityLIpstick 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 entity/ZegoEffectsLongChinParam.java
Properties
intensity
public int intensityLong 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 entity/ZegoEffectsMakeupParam
Properties
intensity
public int intensityMakeup 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 entity/ZegoEffectsMandibleSlimmingParam.java
Properties
intensity
public int intensitymandible slimming strength, range [0~100].
ZegoEffectsMosaicParam
Mosaic parameters.
Details
Mosaic parameters.
Declared in entity/ZegoEffectsMosaicParam.java
Properties
intensity
public int intensityMosaic intensity [0~100].
type
ZegoEffectsNoseLengtheningParam
Nose lengthening strength, range [-100~100].
Details
Nose lengthening strength, range [-100~100].
Declared in entity/ZegoEffectsNoseLengtheningParam.java
Properties
intensity
public int intensityNose 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 entity/ZegoEffectsNoseNarrowingParam.java
Properties
intensity
public int intensityThin nose intensity, range [0-100].
ZegoEffectsRect
The rectangle class with the upper left corner coordinate system as the origin.
Details
The rectangle class with the upper left corner coordinate system as the origin.
Declared in entity/ZegoEffectsRect.java
Properties
x
public int xX value of origin.
y
public int yY value of origin.
width
public int widthThe width of a rectangle, in pixels.
height
public int heightThe height of the rectangle, in pixels.
ZegoEffectsRosyParam
Developers can adjust rosy parameters through this category.
Details
Developers can adjust rosy parameters through this category.
Declared in entity/ZegoEffectsRosyParam.java
Properties
intensity
public int intensityRosy 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 entity/ZegoEffectsSharpenParam.java
Properties
intensity
public int intensitySharpening intensity, 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 entity/ZegoEffectsSmallMouthParam.java
Properties
intensity
public int intensitySmall 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 entity/ZegoEffectsSmoothParam.java
Properties
intensity
public int intensityMicrodermabrasion 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 entity/ZegoEffectsTeethWhiteningParam.java
Properties
intensity
public int intensityWhite tooth strength, range [0~100].
ZegoEffectsVideoFrameParam
Detailed video frame parameters.
Details
Detailed video frame parameters.
Declared in entity/ZegoEffectsVideoFrameParam.java
Properties
width
public int widthVideo frame width, in pixels.
height
public int heightThe height of the video frame, in pixels.
format
textureFormat
public ZegoEffectsTextureFormat textureFormatTexture format, if you are transferring texture, you can specify the format of the corresponding texture, 2D texture or OES texture(Android-specific format).
tranMatrix
public float tranMatrixWhen the 2D texture is an OES texture (a format specific to Android), a texture transformation matrix can be passed in. This can be obtained from the getTransformMatrix(float[] mtx) interface of SurfaceTexture.
- Platform differences: This is only effective when the OES texture is on the Android platform.
ZegoEffectsWhitenParam
Developers can modify the whitening information through this category.
Details
Developers can modify the whitening parameters through this class.
Declared in entity/ZegoEffectsWhitenParam.java
Properties
intensity
public int intensityWhitening 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 entity/ZegoEffectsWrinklesRemovingParam.java
Properties
intensity
public int intensityWrinkles removing strength, range [-100~100].
