SegmentationProperty

Processing properties for background images.

export class SegmentationProperty {

  modelType?: SegModelType;

  greenCapacity?: number;

 screenColorType?: ScreenColorType;}

Properties

modelType
Algorithm used for background processing. See SegModelType.
greenCapacity
Accuracy range for identifying background colors in the image. Value range: [0,1], default is 0.5. The higher the value, the wider the range of solid colors that can be identified. If the value is too high, solid colors at the edge or within the portrait may also be identified. 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
Screen color type. See ScreenColorType.