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.

face_mask_threshold: int

Exceptions

An error has occurred during Face Library execution.
int get faceMaskThreshold => getFaceMaskThreshold();
set faceMaskThreshold(int value) => setFaceMaskThreshold(value);

Exceptions

An error has occurred during Face Library execution.
public int faceMaskThreshold
{
    get => GetfaceMaskThreshold();
    set => SetfaceMaskThreshold(ref value);
}

Exceptions

An error has occurred during Face Library execution.
public int getFaceMaskThreshold() throws FaceException
public void setFaceMaskThreshold(int faceMaskThreshold) throws FaceException

Exceptions

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

Exceptions

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