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

# PortraitProcessor.equalBrightnessThreshold Property

Module: PortraitProcessor

Type: int

## Definition

Equal brightness threshold.

Above this value, the face is equally exposed.

Hint

Default value is 10.

Python

    equal_brightness_threshold: int

Exceptions

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

Dart

    int get equalBrightnessThreshold => getEqualBrightnessThreshold();
    set equalBrightnessThreshold(int value) => setEqualBrightnessThreshold(value);

Exceptions

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

C#

    public int equalBrightnessThreshold
    {
        get => GetequalBrightnessThreshold();
        set => SetequalBrightnessThreshold(ref value);
    }

Exceptions

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

Java

    public int getEqualBrightnessThreshold() throws FaceException
    public void setEqualBrightnessThreshold(int equalBrightnessThreshold) throws FaceException

Exceptions

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

Swift

    public var equalBrightnessThreshold: Int
        get {
            return Int(try! getEqualBrightnessThreshold())
        }
    }

Exceptions

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

C

    int id3FacePortraitProcessor_GetEqualBrightnessThreshold (ID3_FACE_PORTRAIT_PROCESSOR hPortraitProcessor, int * equalBrightnessThreshold)
    int id3FacePortraitProcessor_SetEqualBrightnessThreshold (ID3_FACE_PORTRAIT_PROCESSOR hPortraitProcessor, int equalBrightnessThreshold)

Returns

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