Spoof Detection¶
-
ErrorCode
Trueface::SDK::detectSpoof(SpoofLabel &result, float &spoofScore, float threshold = 0.6)¶ Detect if there is a presentation attack attempt.
- Return
error code, see ErrorCode.
- Parameters
[out] result: the predicted results for the face image.[out] spoofScore: the probability that the image is a spoof attempt (1 indicates real image, 0 indicates spoof attempt).[out] threshold: the spoof score threshold above which it is considered a spoof attempt.