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

# PortraitProcessor.faceMaskThreshold Property

Module: PortraitProcessor

Type: int

## Definition

Face mask detection threshold.

If the detection score is above this value, the person is probably wearing a mask.

Hint

Default value is 35.

Python

    face_mask_threshold: int

Exceptions

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

Dart

    int get faceMaskThreshold => getFaceMaskThreshold();
    set faceMaskThreshold(int value) => setFaceMaskThreshold(value);

Exceptions

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

C#

    public int faceMaskThreshold
    {
        get => GetfaceMaskThreshold();
        set => SetfaceMaskThreshold(ref value);
    }

Exceptions

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

Java

    public int getFaceMaskThreshold() throws FaceException
    public void setFaceMaskThreshold(int faceMaskThreshold) throws FaceException

Exceptions

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

Swift

    public var faceMaskThreshold: Int
        get {
            return Int(try! getFaceMaskThreshold())
        }
    }

Exceptions

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

C

    int id3FacePortraitProcessor_GetFaceMaskThreshold (ID3_FACE_PORTRAIT_PROCESSOR hPortraitProcessor, int * faceMaskThreshold)
    int id3FacePortraitProcessor_SetFaceMaskThreshold (ID3_FACE_PORTRAIT_PROCESSOR hPortraitProcessor, int faceMaskThreshold)

Returns

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