.. index:: 
  !DocumentDetector.confidenceThreshold Property

.. _id3_document_document_detector_confidence_threshold_class_member:

===============================================================================
DocumentDetector.confidenceThreshold Property
===============================================================================

Module: :ref:`DocumentDetector<id3_document_document_detector_class>`

Type: int

Definition
----------

Confidence threshold, from 0 to 100+.

.. hint:: Default value is 50. Lower threshold can increase number of false detection.


.. tab-set::

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

    .. code:: Python

      confidence_threshold: 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 confidenceThreshold => getConfidenceThreshold();
      set confidenceThreshold(int value) => setConfidenceThreshold(value);


    **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 confidenceThreshold
      {
          get => GetconfidenceThreshold();
          set => SetconfidenceThreshold(ref value);
      }


    **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 getConfidenceThreshold() throws DocumentException
      public void setConfidenceThreshold(int confidenceThreshold) 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 confidenceThreshold: Int
          get {
              return Int(try! getConfidenceThreshold())
          }
      }


    **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 id3DocumentDetector_GetConfidenceThreshold (ID3_DOCUMENT_DETECTOR hDocumentDetector, int * confidenceThreshold)
      int id3DocumentDetector_SetConfidenceThreshold (ID3_DOCUMENT_DETECTOR hDocumentDetector, int confidenceThreshold)

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

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

