getSmileThreshold method
Gets the smile threshold. If the Smile score is above this value, the detected face is definitely smiling. Hint: Default value is 75.
return Smile threshold. throws FaceException An error has occurred during Face Library execution.
Implementation
int getSmileThreshold() {
Pointer<Int> pSmileThreshold = calloc();
try {
var err = faceSDK.id3FacePortraitProcessor_GetSmileThreshold(_pHandle.value, pSmileThreshold);
if (err != FaceError.success.value) {
throw FaceException(err);
}
final vSmileThreshold = pSmileThreshold.value;
return vSmileThreshold;
} finally {
calloc.free(pSmileThreshold);
}
}