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

# PortraitProcessor.redEyeThreshold Property

Module: PortraitProcessor

Type: int

## Definition

Threshold for confirming the presence of red eyes.

Hint

Default value is 10.

Python

    red_eye_threshold: int

Exceptions

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

Dart

    int get redEyeThreshold => getRedEyeThreshold();
    set redEyeThreshold(int value) => setRedEyeThreshold(value);

Exceptions

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

C#

    public int redEyeThreshold
    {
        get => GetredEyeThreshold();
        set => SetredEyeThreshold(ref value);
    }

Exceptions

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

Java

    public int getRedEyeThreshold() throws FaceException
    public void setRedEyeThreshold(int redEyeThreshold) throws FaceException

Exceptions

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

Swift

    public var redEyeThreshold: Int
        get {
            return Int(try! getRedEyeThreshold())
        }
    }

Exceptions

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

C

    int id3FacePortraitProcessor_GetRedEyeThreshold (ID3_FACE_PORTRAIT_PROCESSOR hPortraitProcessor, int * redEyeThreshold)
    int id3FacePortraitProcessor_SetRedEyeThreshold (ID3_FACE_PORTRAIT_PROCESSOR hPortraitProcessor, int redEyeThreshold)

Returns

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