Class BeautyOptions

java.lang.Object
io.agora.rtc2.video.BeautyOptions

public class BeautyOptions extends Object
Sets the image enhancement options.
  • Field Details

    • LIGHTENING_CONTRAST_LOW

      public static final int LIGHTENING_CONTRAST_LOW
      0: low contrast for lightening.
      See Also:
    • LIGHTENING_CONTRAST_NORMAL

      public static final int LIGHTENING_CONTRAST_NORMAL
      1: normal contrast for lightening.
      See Also:
    • LIGHTENING_CONTRAST_HIGH

      public static final int LIGHTENING_CONTRAST_HIGH
      2: high contrast for lightening.
      See Also:
    • lighteningContrastLevel

      public int lighteningContrastLevel
      The lightening contrast level, used with lighteningLevel:
    • lighteningLevel

      public float lighteningLevel
      The brightness level. The value ranges between 0.0 (original) and 1.0. The default value is 0.6.
    • smoothnessLevel

      public float smoothnessLevel
      The smoothness level. The value ranges between 0.0 (original) and 1.0. The default value is 0.5. This parameter is usually used to remove blemishes.
    • rednessLevel

      public float rednessLevel
      The redness level. The value ranges between 0.0 (original) and 1.0. The default value is 0.1. This parameter adjusts the red saturation level.
    • sharpnessLevel

      public float sharpnessLevel
      The smoothness level. The value ranges between 0.0 (original) and 1.0. The default value is 0.3.
  • Constructor Details

    • BeautyOptions

      public BeautyOptions(int contrastLevel, float lightening, float smoothness, float redness, float sharpness)
      The image enhancement options.
      Parameters:
      contrastLevel - The contrast level, used with the lighteningLevel parameter:
      lightening - The brightness level. The value ranges from 0.0 (original) to 1.0. The default value is 0.7.
      smoothness - The 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.
      redness - The 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.
    • BeautyOptions

      public BeautyOptions()