Spoof Detection

Deprecated since version 0.17.

SDK.detect_spoof(self: tfsdk.SDK, face_box_and_landmarks: tfsdk.FaceBoxAndLandmarks, threshold: float = 0.5) → Tuple[tfsdk.ERRORCODE, tfsdk.SPOOFLABEL, float]

Detect if there is a spoof attempt. Returns the spoof score.

Parameters
Returns

The ERRORCODE, the tfsdk.SPOOFLABEL, and the spoof score, in that order.

class tfsdk.SPOOFLABEL

Members:

FAKE : The image may be an attempted spoof

REAL : The face image is real