|
Agora Java API Reference for Android
|
Processing properties for background images. More...
Public Member Functions | |
| SegmentationProperty (int modelType, float greenCapacity) | |
Public Attributes | |
| int | modelType |
| float | greenCapacity |
| int | screenColorType |
Static Public Attributes | |
| static final int | SEG_MODEL_AI = 1 |
| static final int | SEG_MODEL_GREEN = 2 |
| static final int | SCREEN_COLOR_AUTO = 0 |
| static final int | SCREEN_COLOR_GREEN = 1 |
| static final int | SCREEN_COLOR_BLUE = 2 |
Processing properties for background images.
|
static |
1: (Default) AI segmentation algorithm.
|
static |
2: Green screen segmentation algorithm.
|
static |
0: (Default) Automatically recognizes the screen color.
|
static |
1: Green.
|
static |
2: Blue.
| int io.agora.rtc2.video.SegmentationProperty.modelType |
The type of algorithms to user for background processing.
| float io.agora.rtc2.video.SegmentationProperty.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.
modelType is set to SEG_MODEL_GREEN. | int io.agora.rtc2.video.SegmentationProperty.screenColorType |
The screen color:
1.8.18