Agora Java API Reference for Android

Public Member Functions | Public Attributes | Static Public Attributes | List of all members
io.agora.rtc2.video.SegmentationProperty Class Reference

## Public Member Functions
| SegmentationProperty (int modelType, float greenCapacity)

## Public Attributes
int | modelType
float | greenCapacity

## Static Public Attributes
static final int | SEG_MODEL_AI = 1
static final int | SEG_MODEL_GREEN = 2

## Detailed Description

Background substitude meta data.

## Member Data Documentation

## ◆ modelType

int io.agora.rtc2.video.SegmentationProperty.modelType

The source type used to substitude capture image background. {backgroundSourceType}: BACKGROUND_NONE(0): background is none. BACKGROUND_COLOR(1): (default) background is color. {BACKGROUND_IMG(2)}: background is image. model type ai or green

## ◆ greenCapacity

float io.agora.rtc2.video.SegmentationProperty.greenCapacity

greenscreen open