|
Agora Java API Reference for Android
|
#include <AgoraBase.h>
Public Types | |
| enum | SEG_MODEL_TYPE { SEG_MODEL_AI = 1, SEG_MODEL_GREEN = 2 } |
| enum | SCREEN_COLOR_TYPE { SCREEN_COLOR_AUTO = 0, SCREEN_COLOR_GREEN = 1, SCREEN_COLOR_BLUE = 2 } |
Public Attributes | |
| SEG_MODEL_TYPE | modelType |
| float | greenCapacity |
| SCREEN_COLOR_TYPE | screenColorType |
The properties for virtual background algorithm.
| SEG_MODEL_TYPE agora::rtc::SegmentationProperty::modelType |
The type of segmentation algorithm. See SEG_MODEL_TYPE. The default value is SEG_MODEL_AI.
| float agora::rtc::SegmentationProperty::greenCapacity |
The color tolerance for green screen segmentation.
This parameter is only effective when modelType is set to SEG_MODEL_GREEN. The value ranges from 0.0 to 1.0, with a default of 0.5. A larger value widens the range of identifiable shades of the screen color. Setting the value too high may cause parts of the portrait to be detected as the background. Agora recommends dynamically adjusting this value based on the observed segmentation effect.
| SCREEN_COLOR_TYPE agora::rtc::SegmentationProperty::screenColorType |
The color of the screen for green screen segmentation. See SCREEN_COLOR_TYPE.
This property is only for green screen segmentation. The default value is SCREEN_COLOR_AUTO.
1.8.18