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

# PortraitProcessor.eyeOcclusionThreshold Property

Module: PortraitProcessor

Type: int

## Definition

Visible eye threshold.

If the score is above this value, the eye is probably occluded.

Hint

Default value 80.

Python

    eye_occlusion_threshold: int

Exceptions

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

Dart

    int get eyeOcclusionThreshold => getEyeOcclusionThreshold();
    set eyeOcclusionThreshold(int value) => setEyeOcclusionThreshold(value);

Exceptions

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

C#

    public int eyeOcclusionThreshold
    {
        get => GeteyeOcclusionThreshold();
        set => SeteyeOcclusionThreshold(ref value);
    }

Exceptions

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

Java

    public int getEyeOcclusionThreshold() throws FaceException
    public void setEyeOcclusionThreshold(int eyeOcclusionThreshold) throws FaceException

Exceptions

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

Swift

    public var eyeOcclusionThreshold: Int
        get {
            return Int(try! getEyeOcclusionThreshold())
        }
    }

Exceptions

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

C

    int id3FacePortraitProcessor_GetEyeOcclusionThreshold (ID3_FACE_PORTRAIT_PROCESSOR hPortraitProcessor, int * eyeOcclusionThreshold)
    int id3FacePortraitProcessor_SetEyeOcclusionThreshold (ID3_FACE_PORTRAIT_PROCESSOR hPortraitProcessor, int eyeOcclusionThreshold)

Returns

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