Agora Java API Reference for Android
io.agora.rtc.video.BeautyOptions Class Reference

Public Member Functions

 BeautyOptions (int contrastLevel, float lightening, float smoothness, float redness, float sharpness)
 

Public Attributes

int lighteningContrastLevel
 
float lighteningLevel
 
float smoothnessLevel
 
float rednessLevel
 
float sharpnessLevel
 

Static Public Attributes

static final int LIGHTENING_CONTRAST_LOW = 0
 
static final int LIGHTENING_CONTRAST_NORMAL = 1
 
static final int LIGHTENING_CONTRAST_HIGH = 2
 

Detailed Description

Sets the image enhancement options.

Constructor & Destructor Documentation

◆ BeautyOptions()

io.agora.rtc.video.BeautyOptions.BeautyOptions ( int  contrastLevel,
float  lightening,
float  smoothness,
float  redness,
float  sharpness 
)

The image enhancement options.

Parameters
contrastLevelThe contrast level, used with the lighteningLevel parameter:
lighteningThe brightness level. The value ranges from 0.0 (original) to 1.0. The default value is 0.6.
smoothnessThe sharpness level. The value ranges from 0.0 (original) to 1.0. The default value is 0.5. This parameter is usually used to remove blemishes.
rednessThe redness level. The value ranges from 0.0 (original) to 1.0. The default value is 0.1. This parameter adjusts the red saturation level.
sharpnessThe sharpness level. The value ranges from 0.0 (original) to 1.0. The default value is 0.3. This parameter is used to improve the sharpness level/clarity of the pic.

Member Data Documentation

◆ LIGHTENING_CONTRAST_LOW

final int io.agora.rtc.video.BeautyOptions.LIGHTENING_CONTRAST_LOW = 0
static

0: low contrast for lightening.

◆ LIGHTENING_CONTRAST_NORMAL

final int io.agora.rtc.video.BeautyOptions.LIGHTENING_CONTRAST_NORMAL = 1
static

1: normal contrast for lightening.

◆ LIGHTENING_CONTRAST_HIGH

final int io.agora.rtc.video.BeautyOptions.LIGHTENING_CONTRAST_HIGH = 2
static

2: high contrast for lightening.

◆ lighteningContrastLevel

int io.agora.rtc.video.BeautyOptions.lighteningContrastLevel

The contrast level, often used in conjunction with lighteningLevel:

The higher the value, the greater the contrast level.

◆ lighteningLevel

float io.agora.rtc.video.BeautyOptions.lighteningLevel

The brightening level, in the range [0.0,1.0], where 0.0 means the original brightening. The default value is 0.6. The higher the value, the greater the brightening level.

◆ smoothnessLevel

float io.agora.rtc.video.BeautyOptions.smoothnessLevel

The smoothness level, in the range [0.0,1.0], where 0.0 means the original smoothness. The default value is 0.5. The higher the value, the greater the smoothness level.

◆ rednessLevel

float io.agora.rtc.video.BeautyOptions.rednessLevel

The redness level, in the range [0.0,1.0], where 0.0 means the original redness. The default value is 0.1. The higher the value, the greater the redness level.

◆ sharpnessLevel

float io.agora.rtc.video.BeautyOptions.sharpnessLevel

The sharpness level, in the range [0.0,1.0], where 0.0 means the original sharpness. The default value is 0.3. The higher the value, the greater the sharpness level.

Since
v3.6.0