# getConfidenceThreshold method

int getConfidenceThreshold()

Gets the confidence threshold, in the range (0;100). Hint: Default value is 50. Note: Setting a high threshold reduces false detection but can increase the number of undetected faces.

return Confidence threshold, in the range (0;100). throws FaceException An error has occurred during Face Library execution.

## Implementation

    int getConfidenceThreshold() {
      Pointer<Int> pConfidenceThreshold = calloc();
      try {
        var err = faceSDK.id3FaceDetector_GetConfidenceThreshold(_pHandle.value, pConfidenceThreshold);
        if (err != FaceError.success.value) {
          throw FaceException(err);
        }
        final vConfidenceThreshold = pConfidenceThreshold.value;
        return vConfidenceThreshold;
      } finally {
        calloc.free(pConfidenceThreshold);
      }
    }