The Video SDK v4.x provides the Agora video enhancement extensions to allow you to take advantage of underexposed video enhancement, color enhancement, and video denoising.
The major functions of the video enhancement extensions are as follows:
Image enhancement
You can achieve different image enhancement effects by adjusting parameters such as contrast, brightness, smoothness, redness, and sharpness levels.
Underexposed video enhancement
When you are in a location where the light is insufficient, the illumination is uneven, or the light source is behind you, you can use the underexposed video enhancement function to turn on supplement light, dynamically increase the overall brightness of the video, and improve the visual range and viewing quality.
Color enhancement
Due to the deficiencies of some cameras, the captured video can have insufficient saturation or grayish images. Use the color enhancement function to adjust the saturation of the image and video to make the color richer and more realistic, and enhance people's subjective visual experience.
At the same time, the algorithm specifically provides skin color protection to prevent people's skin color from being excessively affected.
Video denoising
When the ambient light is dark or the capture equipment performance is poor, you can use the video denoising function to eliminate video noise.
Video enhancement functions may affect device performance. Please consider your actual requirements and user device performance when using these extensions.
Before using video enhancement extensions, ensure that the relevant dynamic library is integrated. See Extension libraries.
Call the setBeautyEffectOptions
method, and adjust various image enhancement effects through the parameters. See the setBeautyEffectOptions
description for details.
Call setExtensionProperty,
and set the parameters as follows:
provider_name
: agora
extension_name
: beauty
key
: lowlight_enhance_option
enable
, mode,
and level
in the value
field are shown in the following table:
Parameter | Description |
---|---|
enable |
Whether to enable the function:
|
mode |
The underexposed video enhancement mode:
|
level |
The underexposed video enhancement level:
|
Call setExtensionProperty,
and set the parameters as follows:
provider_name
: agora
extension_name
: beauty
key
: color_enhance_option
enable
, Strength,
and Skin Protection
in the value
field are shown in the following table:
Parameter | Description |
---|---|
enable |
Whether to enable the function:
|
Strength |
The level of color saturation improvement. The value range is [0.0,1.0], and the default value is 0.5. The larger the parameter value, the higher the screen color saturation. |
Skin Protection |
The level of skin protection. The value range is [0.0, 1.0], and the default value is 1.0. The larger the parameter value, the less the skin color is affected by color enhancement. |
Call setExtensionProperty,
and set the parameters as follows:
provider_name
: agora
extension_name
: beauty
key
: video_denoiser_option
enable
, mode,
and level
in the value
field are shown in the following table:
Parameter | Description |
---|---|
enable |
Whether to enable the function:
|
mode |
Video denoising mode:
|
level |
Video denoising level:
|