Mask Detection¶
- SDK.detect_mask(self: tfsdk.SDK, face_box_and_landmarks: tfsdk.FaceBoxAndLandmarks) → Tuple[tfsdk.ERRORCODE, tfsdk.MASKLABEL]¶
Detect if there is a mask on the face in the given image.
- Parameters
face_box_and_landmarks –
tfsdk.FaceBoxAndLandmarksreturned bytfsdk.SDK.detect_faces()ortfsdk.SDK.detect_largest_face().- Returns
The
ERRORCODEand thetfsdk.MASKLABEL.
- class tfsdk.MASKLABEL¶
Members:
MASK : There is a mask on the face
NO_MASK : There is no mask on the face