AgoraSegmentationProperty
背景图像处理属性。
Objective-C
__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。值越大,可识别的纯色色阶范围越广。当该值过大时,可能会将人物边缘或人物区域内的纯色误识别为背景。声网建议你根据实际效果动态调整该参数的值。
信息
仅当
modelType 设置为 SegModelAgoraGreen 时该参数才生效。screenColorType
屏幕颜色类型。详见 ScreenColorType。