# setConfidenceThreshold method

void setConfidenceThreshold(

1. int confidenceThreshold

)

Sets the confidence threshold, from 0 to 100+. Hint: Default value is 50. Lower threshold can increase number of false detection.

param confidenceThreshold Confidence threshold, from 0 to 100+. throws DocumentException An error has occurred during Document Library execution.

## Implementation

    void setConfidenceThreshold(int confidenceThreshold) {
      var err = documentSDK.id3DocumentDetector_SetConfidenceThreshold(_pHandle.value, confidenceThreshold);
      if (err != DocumentError.success.value) {
        throw DocumentException(err);
      }
    }