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.
detect_face_mask(self, image: Image, detected_face: DetectedFace) -> int
Parameters
Returns
intThe face mask presence score of the detected face.
Exceptions
An error has occurred during Face Library execution.
int detectFaceMask(Image image, DetectedFace detectedFace)
Parameters
Returns
intThe face mask presence score of the detected face.
Exceptions
An error has occurred during Face Library execution.
public int DetectFaceMask(Image image, DetectedFace detectedFace)
Parameters
Returns
intThe face mask presence score of the detected face.
Exceptions
An error has occurred during Face Library execution.
public int detectFaceMask(Image image, DetectedFace detectedFace) throws FaceException
Parameters
Returns
intThe face mask presence score of the detected face.
Exceptions
An error has occurred during Face Library execution.
public func detectFaceMask(image: Image, detectedFace: DetectedFace) throws -> Int32
Parameters
Returns
IntThe face mask presence score of the detected face.
Exceptions
An error has occurred during Face Library execution.
int id3FaceAnalyser_DetectFaceMask (
ID3_FACE_ANALYSER hFaceAnalyser,
ID3_FACE_IMAGE hImage,
ID3_DETECTED_FACE hDetectedFace,
int * score)
Parameters
hFaceAnalyserID3_FACE_ANALYSERin Handle to the FaceAnalyser object.hImageID3_FACE_IMAGEin Source image to process.hDetectedFaceID3_DETECTED_FACEin Detected face to process.scoreint *out The face mask presence score of the detected face.
Returns