Hide navigation sidebar
Hide table of contents sidebar
Skip to content
Back to top
Toggle table of contents sidebar

# DocumentDetector.confidenceThreshold Property

Module: DocumentDetector

Type: int

## Definition

Confidence threshold, from 0 to 100+.

Hint

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

Python

    confidence_threshold: int

Exceptions

> DocumentException
> An error has occurred during Document Library execution.

Dart

    int get confidenceThreshold => getConfidenceThreshold();
    set confidenceThreshold(int value) => setConfidenceThreshold(value);

Exceptions

> DocumentException
> An error has occurred during Document Library execution.

C#

    public int confidenceThreshold
    {
        get => GetconfidenceThreshold();
        set => SetconfidenceThreshold(ref value);
    }

Exceptions

> DocumentException
> An error has occurred during Document Library execution.

Java

    public int getConfidenceThreshold() throws DocumentException
    public void setConfidenceThreshold(int confidenceThreshold) throws DocumentException

Exceptions

> DocumentException
> An error has occurred during Document Library execution.

Swift

    public var confidenceThreshold: Int
        get {
            return Int(try! getConfidenceThreshold())
        }
    }

Exceptions

> DocumentException
> An error has occurred during Document Library execution.

C

    int id3DocumentDetector_GetConfidenceThreshold (ID3_DOCUMENT_DETECTOR hDocumentDetector, int * confidenceThreshold)
    int id3DocumentDetector_SetConfidenceThreshold (ID3_DOCUMENT_DETECTOR hDocumentDetector, int confidenceThreshold)

Returns

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