Hide navigation sidebar
Hide table of contents sidebar
Skip to content
Back to top
Toggle table of contents sidebar

# 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.

Python

    background_color_uniformity_threshold: int

Exceptions

> FaceException
> An error has occurred during Face Library execution.

Dart

    int get backgroundColorUniformityThreshold => getBackgroundColorUniformityThreshold();
    set backgroundColorUniformityThreshold(int value) => setBackgroundColorUniformityThreshold(value);

Exceptions

> FaceException
> An error has occurred during Face Library execution.

C#

    public int backgroundColorUniformityThreshold
    {
        get => GetbackgroundColorUniformityThreshold();
        set => SetbackgroundColorUniformityThreshold(ref value);
    }

Exceptions

> FaceException
> An error has occurred during Face Library execution.

Java

    public int getBackgroundColorUniformityThreshold() throws FaceException
    public void setBackgroundColorUniformityThreshold(int backgroundColorUniformityThreshold) throws FaceException

Exceptions

> FaceException
> An error has occurred during Face Library execution.

Swift

    public var backgroundColorUniformityThreshold: Int
        get {
            return Int(try! getBackgroundColorUniformityThreshold())
        }
    }

Exceptions

> FaceException
> An error has occurred during Face Library execution.

C

    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.