setBeautyStyle abstract method

void setBeautyStyle(
  1. TRTCBeautyStyle style,
  2. int beautyLevel,
  3. int whitenessLevel,
  4. int ruddinessLevel,
)

Set special effects such as beauty, brightening, and rosy skin filters The SDK is integrated with two skin smoothing algorithms of different styles: "Smooth" style, which uses a more radical algorithm for more obvious effect and is suitable for show live streaming. "Natural" style, which retains more facial details for more natural effect and is suitable for most live streaming use cases.

Parameters:

  • style
    • Skin smoothening algorithm ("smooth" or "natural")
  • beautyLevel
    • Strength of the beauty filter. Value range: 0–9; 0 indicates that the filter is disabled, and the greater the value, the more obvious the effect.
  • whitenessLevel
    • Strength of the brightening filter. Value range: 0–9; 0 indicates that the filter is disabled, and the greater the value, the more obvious the effect.
  • ruddinessLevel
    • Strength of the rosy skin filter. Value range: 0–9; 0 indicates that the filter is disabled, and the greater the value, the more obvious the effect.

Implementation

void setBeautyStyle(TRTCBeautyStyle style, int beautyLevel, int whitenessLevel, int ruddinessLevel);