Package io.agora.rtc2.video
Class SegmentationProperty
java.lang.Object
io.agora.rtc2.video.SegmentationProperty
-
Field Summary
FieldsModifier and TypeFieldDescriptionfloatThe accuracy range for recognizing background colors in the image.intThe type of algorithms to user for background processing.static final int0: (Default) Automatically recognizes the screen color.static final int2: Blue.static final int1: Green.intThe screen color: - SCREEN_COLOR_AUTO (0): The SDK automatically selects the screen color.static final int1: (Default) AI segmentation algorithm.static final int2: Green screen segmentation algorithm. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
SEG_MODEL_AI
public static final int SEG_MODEL_AI1: (Default) AI segmentation algorithm.- See Also:
-
SEG_MODEL_GREEN
public static final int SEG_MODEL_GREEN2: Green screen segmentation algorithm.- See Also:
-
SCREEN_COLOR_AUTO
public static final int SCREEN_COLOR_AUTO0: (Default) Automatically recognizes the screen color.- See Also:
-
SCREEN_COLOR_GREEN
public static final int SCREEN_COLOR_GREEN1: Green.- See Also:
-
SCREEN_COLOR_BLUE
public static final int SCREEN_COLOR_BLUE2: Blue.- See Also:
-
modelType
public int modelTypeThe 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 greenCapacityThe 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 screenColorTypeThe 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()
-