Mask Detection

SDK.detect_mask(self: tfsdk.SDK, faceBoxAndLandmarks: Trueface::FaceBoxAndLandmarks) → Tuple[Trueface::ErrorCode, Trueface::MaskLabel, float]

Detect if there is a mask on the face in the given image. Returns the result as well as teh mask score. The mask score can be used for setting a custom threshold that works better for the use case. By default, we use a mask score greater than 3.0 to determine if a mask was detected.

class tfsdk.MASKLABEL

Members:

MASK : There is a mask on the face

NO_MASK : There is no mask on the face