SegmentationProperty

Processing properties for background images.

public class SegmentationProperty
    {
        public SEG_MODEL_TYPE modelType;

        public float greenCapacity;

        public SCREEN_COLOR_TYPE screenColorType;

        public SegmentationProperty()
        {
            this.modelType = SEG_MODEL_TYPE.SEG_MODEL_AI;
            this.greenCapacity = 0.5f;
            this.screenColorType = SCREEN_COLOR_TYPE.SCREEN_COLOR_AUTO;
        }

        public SegmentationProperty(SEG_MODEL_TYPE modelType, float greenCapacity, SCREEN_COLOR_TYPE screenColorType)
        {
            this.modelType = modelType;
            this.greenCapacity = greenCapacity;
            this.screenColorType = screenColorType;
        }
    }

Properties

modelType
Algorithm used for background processing. See SEG_MODEL_TYPE.
greenCapacity
Accuracy range for recognizing background colors in the image. Value range is [0,1], default is 0.5. A larger value indicates a wider range of solid colors can be recognized. If the value is too large, solid colors at the edge or within the portrait may also be recognized. It is recommended to adjust 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.