AgoraSegmentationProperty

  • iOS

更新时间不可用

背景图像处理属性。

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。

表格内容超出当前宽度,可横向滚动查看更多列。

这个页面有帮助吗?