# getConfidence method

int getConfidence()

Gets the confidence score of the detected document, from 0 to 100.

return Confidence score of the detected document, from 0 to 100. throws DocumentException An error has occurred during Document Library execution.

## Implementation

    int getConfidence() {
      Pointer<Int> pConfidence = calloc();
      try {
        var err = documentSDK.id3DetectedDocument_GetConfidence(_pHandle.value, pConfidence);
        if (err != DocumentError.success.value) {
          throw DocumentException(err);
        }
        final vConfidence = pConfidence.value;
        return vConfidence;
      } finally {
        calloc.free(pConfidence);
      }
    }