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

# PortraitProcessor.eyeOpeningThreshold Property

Module: PortraitProcessor

Type: int

## Definition

Eye opening threshold.

If the score is above this value, the eyes are definitely open.

Hint

Default value is 5.

Python

    eye_opening_threshold: int

Exceptions

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

Dart

    int get eyeOpeningThreshold => getEyeOpeningThreshold();
    set eyeOpeningThreshold(int value) => setEyeOpeningThreshold(value);

Exceptions

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

C#

    public int eyeOpeningThreshold
    {
        get => GeteyeOpeningThreshold();
        set => SeteyeOpeningThreshold(ref value);
    }

Exceptions

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

Java

    public int getEyeOpeningThreshold() throws FaceException
    public void setEyeOpeningThreshold(int eyeOpeningThreshold) throws FaceException

Exceptions

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

Swift

    public var eyeOpeningThreshold: Int
        get {
            return Int(try! getEyeOpeningThreshold())
        }
    }

Exceptions

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

C

    int id3FacePortraitProcessor_GetEyeOpeningThreshold (ID3_FACE_PORTRAIT_PROCESSOR hPortraitProcessor, int * eyeOpeningThreshold)
    int id3FacePortraitProcessor_SetEyeOpeningThreshold (ID3_FACE_PORTRAIT_PROCESSOR hPortraitProcessor, int eyeOpeningThreshold)

Returns

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