Mask Detection¶
-
ErrorCode
Trueface::SDK
::
detectMask
(const FaceBoxAndLandmarks &faceBoxAndLandmarks, MaskLabel &result, float &maskScore)¶ Detect whether the face in the image is wearing a mask or not
- Return
error code, see ErrorCode.
- Parameters
[in] faceBoxAndLandmarks
: FaceBoxAndLandmarks returned by detectFaces() or detectLargestFace().[out] result
: The predicted MaskLabel for face image.[out] maskScore
: The mask score for this image. This can be used for setting custom thresholds that work better for the use case. By default, we use a mask score greater than 3.0 to determine that a mask was detected.