getFaceDetectionThreshold method
Gets the specifies the face detection confidence threshold, in the range is (0;100). Hint: Default value is 50. Setting a high threshold reduces false detections but may increase the number of undetected faces.
return Specifies the face detection confidence threshold, in the range is (0;100). throws FaceException An error has occurred during Face Library execution.
Implementation
int getFaceDetectionThreshold() {
Pointer<Int> pFaceDetectionThreshold = calloc();
try {
var err = faceSDK.id3FacePortraitProcessor_GetFaceDetectionThreshold(_pHandle.value, pFaceDetectionThreshold);
if (err != FaceError.success.value) {
throw FaceException(err);
}
final vFaceDetectionThreshold = pFaceDetectionThreshold.value;
return vFaceDetectionThreshold;
} finally {
calloc.free(pFaceDetectionThreshold);
}
}