Spoof Detection

SDK.detect_spoof(self: tfsdk.SDK, faceBoxAndLandmarks: Trueface::FaceBoxAndLandmarks, threshold: float = 0.5) → Tuple[Trueface::ErrorCode, Trueface::SpoofLabel, float]

Detect if there is a spoof attempt. Returns the spoof score. If the spoof score is above the threshold, then it is considered a real attempt.

class tfsdk.SPOOFLABEL

Members:

FAKE : The image may be an attempted spoof

REAL : The face image is real