Class SegmentationProperty

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

public class SegmentationProperty extends Object
  • Field Details

    • SEG_MODEL_AI

      public static final int SEG_MODEL_AI
      1: (Default) AI segmentation algorithm.
      See Also:
    • SEG_MODEL_GREEN

      public static final int SEG_MODEL_GREEN
      2: Green screen segmentation algorithm.
      See Also:
    • SCREEN_COLOR_AUTO

      public static final int SCREEN_COLOR_AUTO
      0: (Default) Automatically recognizes the screen color.
      See Also:
    • SCREEN_COLOR_GREEN

      public static final int SCREEN_COLOR_GREEN
      1: Green.
      See Also:
    • SCREEN_COLOR_BLUE

      public static final int SCREEN_COLOR_BLUE
      2: Blue.
      See Also:
    • modelType

      public int modelType
      The type of algorithms to user for background processing. - SEG_MODEL_AI (1): (Default) Use the algorithm suitable for all scenarios. - SEG_MODEL_GREEN (2): Use the algorithm designed specifically for scenarios with a green screen background.
    • greenCapacity

      public float greenCapacity
      The accuracy range for recognizing background colors in the image. The value range is [0,1], and the default value is 0.5. The larger the value, the wider the range of identifiable shades of pure color. When the value of this parameter is too large, the edge of the portrait and the pure color in the portrait range are also detected. Agora recommends that you dynamically adjust the value of this parameter according to the actual effect.
    • screenColorType

      public int screenColorType
      The screen color: - SCREEN_COLOR_AUTO (0): The SDK automatically selects the screen color. - SCREEN_COLOR_GREEN (1): Green. - SCREEN_COLOR_BLUE (2): Blue.
  • Constructor Details

    • SegmentationProperty

      public SegmentationProperty(int modelType, float greenCapacity)
    • SegmentationProperty

      public SegmentationProperty()