PortraitProcessor.backgroundColorUniformityThreshold Property

Module: PortraitProcessor

Type: int

Definition

Background color uniformity threshold.

If the score is above this value, the background color of the image is definitely uniform.

Hint

Default value is 80.

background_color_uniformity_threshold: int

Exceptions

An error has occurred during Face Library execution.
int get backgroundColorUniformityThreshold => getBackgroundColorUniformityThreshold();
set backgroundColorUniformityThreshold(int value) => setBackgroundColorUniformityThreshold(value);

Exceptions

An error has occurred during Face Library execution.
public int backgroundColorUniformityThreshold
{
    get => GetbackgroundColorUniformityThreshold();
    set => SetbackgroundColorUniformityThreshold(ref value);
}

Exceptions

An error has occurred during Face Library execution.
public int getBackgroundColorUniformityThreshold() throws FaceException
public void setBackgroundColorUniformityThreshold(int backgroundColorUniformityThreshold) throws FaceException

Exceptions

An error has occurred during Face Library execution.
public var backgroundColorUniformityThreshold: Int
    get {
        return Int(try! getBackgroundColorUniformityThreshold())
    }
}

Exceptions

An error has occurred during Face Library execution.
int id3FacePortraitProcessor_GetBackgroundColorUniformityThreshold (ID3_FACE_PORTRAIT_PROCESSOR hPortraitProcessor, int * backgroundColorUniformityThreshold)
int id3FacePortraitProcessor_SetBackgroundColorUniformityThreshold (ID3_FACE_PORTRAIT_PROCESSOR hPortraitProcessor, int backgroundColorUniformityThreshold)

Returns

int
An error code.
See id3FaceError file for the list of possible error codes.