SegmentationProperty

Background image processing properties.

export class SegmentationProperty {

  modelType?: SegModelType;

  greenCapacity?: number;

 screenColorType?: ScreenColorType;}

Properties

modelType
The algorithm used for background processing. See SegModelType.
greenCapacity
The precision range for recognizing background colors in the image. Value range is [0,1], default is 0.5. A higher value indicates a wider range of recognizable solid colors. If the value is too high, edges of the portrait and solid colors within the portrait may also be recognized. It is recommended to adjust this value dynamically based on actual effects.
Note: This parameter takes effect only when modelType is set to SegModelGreen.
screenColorType
Type of screen color. See ScreenColorType.