SegmentationProperty

Used to set properties related to background image processing.

struct SegmentationProperty {
  SEG_MODEL_TYPE modelType;
  float greenCapacity;
  SCREEN_COLOR_TYPE screenColorType;
};

Properties

modelType
Algorithm type used for background processing. See SEG_MODEL_TYPE.
greenCapacity
Precision range for recognizing background color in the image. Range is [0,1], default is 0.5. The greater the value, the wider the range of recognizable solid tones. If set too high, solid colors in the edges or within the portrait may also be detected. Agora recommends adjusting this value dynamically based on actual results.
Note: This parameter takes effect only when modelType is set to SEG_MODEL_GREEN.
screenColorType
Screen color type. See SCREEN_COLOR_TYPE.