.. index:: 
  !DetectedDocument.confidence Property

.. _id3_document_detected_document_confidence_class_member:

===============================================================================
DetectedDocument.confidence Property
===============================================================================

Module: :ref:`DetectedDocument<id3_document_detected_document_class>`

Type: int

Definition
----------

Confidence score of the detected document, from 0 to 100.


.. tab-set::

  .. tab-item:: Python
    :sync: Python

    .. code:: Python

      confidence: int


    **Exceptions**

      .. line-block::

        :ref:`DocumentException<id3_document_document_exception>`
        An error has occurred during Document Library execution.

  .. tab-item:: Dart
    :sync: Dart

    .. code:: Dart

      int get confidence => getConfidence();


    **Exceptions**

      .. line-block::

        :ref:`DocumentException<id3_document_document_exception>`
        An error has occurred during Document Library execution.

  .. tab-item:: C#
    :sync: C#

    .. code:: C#

      public int confidence
      {
          get => Getconfidence();
      }


    **Exceptions**

      .. line-block::

        :ref:`DocumentException<id3_document_document_exception>`
        An error has occurred during Document Library execution.

  .. tab-item:: Java
    :sync: Java

    .. code:: Java

      public int getConfidence() throws DocumentException


    **Exceptions**

      .. line-block::

        :ref:`DocumentException<id3_document_document_exception>`
        An error has occurred during Document Library execution.

  .. tab-item:: Swift
    :sync: Swift

    .. code:: Swift

      public var confidence: Int
          get {
              return Int(try! getConfidence())
          }
      }


    **Exceptions**

      .. line-block::

        :ref:`DocumentException<id3_document_document_exception>`
        An error has occurred during Document Library execution.

  .. tab-item:: C
    :sync: C

    .. code:: C

      int id3DetectedDocument_GetConfidence (ID3_DETECTED_DOCUMENT hDetectedDocument, int * confidence)

    **Returns**
   
      .. line-block::

        ``int``
        An error code.
        See :ref:`id3DocumentError<id3_document_document_error_enum>` file for the list of possible error codes.

