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

# MrzReader.threadCount Property

Module: MrzReader

Type: int

## Definition

Number of threads to use for reading.

Hint

Default value is 1. Allocating more than 1 thread here can increase the speed of the process.

Python

    thread_count: int

Exceptions

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

Dart

    int get threadCount => getThreadCount();
    set threadCount(int value) => setThreadCount(value);

Exceptions

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

C#

    public int threadCount
    {
        get => GetthreadCount();
        set => SetthreadCount(ref value);
    }

Exceptions

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

Java

    public int getThreadCount() throws DocumentException
    public void setThreadCount(int threadCount) throws DocumentException

Exceptions

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

Swift

    public var threadCount: Int
        get {
            return Int(try! getThreadCount())
        }
    }

Exceptions

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

C

    int id3DocumentMrzReader_GetThreadCount (ID3_DOCUMENT_MRZ_READER hMrzReader, int * threadCount)
    int id3DocumentMrzReader_SetThreadCount (ID3_DOCUMENT_MRZ_READER hMrzReader, int threadCount)

Returns

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