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

# DocumentDetector.model Property

Module: DocumentDetector

Type: DocumentModel

## Definition

Model to be used for document detection.

Hint

Default value is DocumentDetector2A.

Python

    model: DocumentModel

Exceptions

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

Dart

    DocumentModel get model => getModel();
    set model(DocumentModel value) => setModel(value);

Exceptions

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

C#

    public DocumentModel model
    {
        get => Getmodel();
        set => Setmodel(ref value);
    }

Exceptions

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

Java

    public DocumentModel getModel() throws DocumentException
    public void setModel(DocumentModel model) throws DocumentException

Exceptions

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

Swift

    public var model: DocumentModel
        get {
            return try! getModel()
        }
    }

Exceptions

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

C

    int id3DocumentDetector_GetModel (ID3_DOCUMENT_DETECTOR hDocumentDetector, id3DocumentModel * eModel)
    int id3DocumentDetector_SetModel (ID3_DOCUMENT_DETECTOR hDocumentDetector, id3DocumentModel eModel)

Returns

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