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

# PortraitProcessor.mouthOcclusionThreshold Property

Module: PortraitProcessor

Type: int

## Definition

Mouth occlusion threshold.

If the mouth occlusion score is above this value, the mouth is probably occluded.

Hint

Default value 70.

Python

    mouth_occlusion_threshold: int

Exceptions

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

Dart

    int get mouthOcclusionThreshold => getMouthOcclusionThreshold();
    set mouthOcclusionThreshold(int value) => setMouthOcclusionThreshold(value);

Exceptions

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

C#

    public int mouthOcclusionThreshold
    {
        get => GetmouthOcclusionThreshold();
        set => SetmouthOcclusionThreshold(ref value);
    }

Exceptions

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

Java

    public int getMouthOcclusionThreshold() throws FaceException
    public void setMouthOcclusionThreshold(int mouthOcclusionThreshold) throws FaceException

Exceptions

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

Swift

    public var mouthOcclusionThreshold: Int
        get {
            return Int(try! getMouthOcclusionThreshold())
        }
    }

Exceptions

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

C

    int id3FacePortraitProcessor_GetMouthOcclusionThreshold (ID3_FACE_PORTRAIT_PROCESSOR hPortraitProcessor, int * mouthOcclusionThreshold)
    int id3FacePortraitProcessor_SetMouthOcclusionThreshold (ID3_FACE_PORTRAIT_PROCESSOR hPortraitProcessor, int mouthOcclusionThreshold)

Returns

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