AgoraSegmentationProperty
- iOS
更新时间
背景图像处理属性。
__attribute__((visibility("default"))) @interface AgoraSegmentationProperty: NSObject
@property(nonatomic, assign) SegModelType modelType;
@property(nonatomic, assign) float greenCapacity;
@property(nonatomic, assign) ScreenColorType screenColorType;
@end属性
| 参数名 | 描述 |
|---|---|
modelType | 用于背景处理的算法类型。详见 SegModelType。 |
greenCapacity | 识别图像中背景纯色的精度范围。取值范围为 [0,1],默认值为 0.5。值越大,可识别的纯色色阶范围越广。当该值过大时,可能会将人物边缘或人物区域内的纯色误识别为背景。声网建议你根据实际效果动态调整该参数的值。 注: 仅当 |
screenColorType | 屏幕颜色类型。详见 ScreenColorType。 |