FaceAnalyser.detectFaceMask Method

Module: FaceAnalyser

Definition

Detects the presence of a face mask on a detected face.

A high score means that there is a high chance that the person is wearing a mask.

The minimum recommended threshold is 15.

Important

Loading the FaceMaskClassifier, model is required to use this function.

int detectFaceMask(Image image, DetectedFace detectedFace)

Parameters

image Image
in Source image to process.

detectedFace DetectedFace
in Detected face to process.

Returns

int
The face mask presence score of the detected face.

Exceptions

An error has occurred during Face Library execution.