Spoof Detection

Our spoof implementation currently has a bug which we are working to solve. We will ship out a patched version soon. In the meantime, this function has been disabled.

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