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

# PortraitProcessor.mouthOpenThreshold Property

Module: PortraitProcessor

Type: int

## Definition

Mouth opening threshold.

If the mouth opening score is above this value, the mouth of detected face is definitely open.

Hint

Default value is 35.

Python

    mouth_open_threshold: int

Exceptions

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

Dart

    int get mouthOpenThreshold => getMouthOpenThreshold();
    set mouthOpenThreshold(int value) => setMouthOpenThreshold(value);

Exceptions

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

C#

    public int mouthOpenThreshold
    {
        get => GetmouthOpenThreshold();
        set => SetmouthOpenThreshold(ref value);
    }

Exceptions

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

Java

    public int getMouthOpenThreshold() throws FaceException
    public void setMouthOpenThreshold(int mouthOpenThreshold) throws FaceException

Exceptions

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

Swift

    public var mouthOpenThreshold: Int
        get {
            return Int(try! getMouthOpenThreshold())
        }
    }

Exceptions

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

C

    int id3FacePortraitProcessor_GetMouthOpenThreshold (ID3_FACE_PORTRAIT_PROCESSOR hPortraitProcessor, int * mouthOpenThreshold)
    int id3FacePortraitProcessor_SetMouthOpenThreshold (ID3_FACE_PORTRAIT_PROCESSOR hPortraitProcessor, int mouthOpenThreshold)

Returns

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