SegmentationProperty
- Unity
更新时间不可用
背景图像的处理属性。
public class SegmentationProperty
{
public SEG_MODEL_TYPE modelType;
public float greenCapacity;
public SCREEN_COLOR_TYPE screenColorType;
public SegmentationProperty()
{
this.modelType = SEG_MODEL_TYPE.SEG_MODEL_AI;
this.greenCapacity = 0.5f;
this.screenColorType = SCREEN_COLOR_TYPE.SCREEN_COLOR_AUTO;
}
public SegmentationProperty(SEG_MODEL_TYPE modelType, float greenCapacity, SCREEN_COLOR_TYPE screenColorType)
{
this.modelType = modelType;
this.greenCapacity = greenCapacity;
this.screenColorType = screenColorType;
}
}属性
| 参数名 | 描述 |
|---|---|
modelType | 进行背景处理的算法。详见 SEG_MODEL_TYPE。 |
greenCapacity | |
screenColorType | 屏幕颜色类型。详见 SCREEN_COLOR_TYPE。 |