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.

mouth_open_threshold: int

Exceptions

An error has occurred during Face Library execution.
int get mouthOpenThreshold => getMouthOpenThreshold();
set mouthOpenThreshold(int value) => setMouthOpenThreshold(value);

Exceptions

An error has occurred during Face Library execution.
public int mouthOpenThreshold
{
    get => GetmouthOpenThreshold();
    set => SetmouthOpenThreshold(ref value);
}

Exceptions

An error has occurred during Face Library execution.
public int getMouthOpenThreshold() throws FaceException
public void setMouthOpenThreshold(int mouthOpenThreshold) throws FaceException

Exceptions

An error has occurred during Face Library execution.
public var mouthOpenThreshold: Int
    get {
        return Int(try! getMouthOpenThreshold())
    }
}

Exceptions

An error has occurred during Face Library execution.
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.