getPadThreshold method
Gets the presentation attack detection threshold, from 0 to 100. Higher values enable more attacks to be detected, but may reduce ease of use. Hint: Default value 95.
return Presentation attack detection threshold, from 0 to 100. throws FaceException An error has occurred during Face Library execution.
Implementation
int getPadThreshold() {
Pointer<Int> pPadThreshold = calloc();
try {
var err = faceSDK.id3FacePortraitProcessor_GetPadThreshold(_pHandle.value, pPadThreshold);
if (err != FaceError.success.value) {
throw FaceException(err);
}
final vPadThreshold = pPadThreshold.value;
return vPadThreshold;
} finally {
calloc.free(pPadThreshold);
}
}