# SegmentationProperty (/zh-CN/api-reference/rtc/react-native/class-segmentationproperty)

> For AI agents: see the complete documentation index at [llms.txt](/llms.txt).

<a id="class_segmentationproperty__prototype"></a>

```ts
export class SegmentationProperty {

  modelType?: SegModelType;

  greenCapacity?: number;

 screenColorType?: ScreenColorType;}
```

<a id="class_segmentationproperty__parameters"></a>

## 属性 [#属性]

<ParameterList>
<a id="modeltype"></a>
<Parameter name="modelType">

进行背景处理的算法。详见 [SegModelType](/zh-CN/api-reference/rtc/react-native/enum-segmodeltype)。

</Parameter>
<a id="greencapacity"></a>
<Parameter name="greenCapacity">

对画面中背景颜色识别的精度范围。取值范围为 [0,1]，默认值为 0.5。取值越大，代表可识别的纯色范围越大。当该参数取值过大时，人像边缘和人像范围内的纯色也会被识别。建议你根据实际效果动态调整该参数的值。

:::note
注： 该参数仅在 `modelType` 设置为 `SegModelGreen` 时生效。
:::

</Parameter>
<a id="screencolortype"></a>
<Parameter name="screenColorType">

屏幕颜色类型。详见 [ScreenColorType](/zh-CN/api-reference/rtc/react-native/enum-screencolortype)。

</Parameter>
</ParameterList>
