Spoof Detection

SDK.detect_spoof(self: tfsdk.SDK, threshold: float = 0.6) → 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