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

# PortraitProcessor.backgroundStructureUniformityThreshold Property

Module: PortraitProcessor

Type: int

## Definition

Background structure uniformity threshold.

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

Hint

Default value is 80.

Python

    background_structure_uniformity_threshold: int

Exceptions

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

Dart

    int get backgroundStructureUniformityThreshold => getBackgroundStructureUniformityThreshold();
    set backgroundStructureUniformityThreshold(int value) => setBackgroundStructureUniformityThreshold(value);

Exceptions

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

C#

    public int backgroundStructureUniformityThreshold
    {
        get => GetbackgroundStructureUniformityThreshold();
        set => SetbackgroundStructureUniformityThreshold(ref value);
    }

Exceptions

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

Java

    public int getBackgroundStructureUniformityThreshold() throws FaceException
    public void setBackgroundStructureUniformityThreshold(int backgroundStructureUniformityThreshold) throws FaceException

Exceptions

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

Swift

    public var backgroundStructureUniformityThreshold: Int
        get {
            return Int(try! getBackgroundStructureUniformityThreshold())
        }
    }

Exceptions

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

C

    int id3FacePortraitProcessor_GetBackgroundStructureUniformityThreshold (ID3_FACE_PORTRAIT_PROCESSOR hPortraitProcessor, int * backgroundStructureUniformityThreshold)
    int id3FacePortraitProcessor_SetBackgroundStructureUniformityThreshold (ID3_FACE_PORTRAIT_PROCESSOR hPortraitProcessor, int backgroundStructureUniformityThreshold)

Returns

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