# setFaceDetectionThreshold method

void setFaceDetectionThreshold(

1. int faceDetectionThreshold

)

Sets 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.

param faceDetectionThreshold Specifies the face detection confidence threshold, in the range is (0;100). throws FaceException An error has occurred during Face Library execution.

## Implementation

    void setFaceDetectionThreshold(int faceDetectionThreshold) {
      var err = faceSDK.id3FacePortraitProcessor_SetFaceDetectionThreshold(_pHandle.value, faceDetectionThreshold);
      if (err != FaceError.success.value) {
        throw FaceException(err);
      }
    }