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

# MrzReader.processingUnit Property

Module: MrzReader

Type: ProcessingUnit

## Definition

Processing unit where to run the detection process.

Hint

Default value is CPU.

Python

    processing_unit: ProcessingUnit

Exceptions

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

Dart

    ProcessingUnit get processingUnit => getProcessingUnit();
    set processingUnit(ProcessingUnit value) => setProcessingUnit(value);

Exceptions

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

C#

    public ProcessingUnit processingUnit
    {
        get => GetprocessingUnit();
        set => SetprocessingUnit(ref value);
    }

Exceptions

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

Java

    public ProcessingUnit getProcessingUnit() throws DocumentException
    public void setProcessingUnit(ProcessingUnit processingUnit) throws DocumentException

Exceptions

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

Swift

    public var processingUnit: ProcessingUnit
        get {
            return try! getProcessingUnit()
        }
    }

Exceptions

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

C

    int id3DocumentMrzReader_GetProcessingUnit (ID3_DOCUMENT_MRZ_READER hMrzReader, id3DocumentProcessingUnit * eProcessingUnit)
    int id3DocumentMrzReader_SetProcessingUnit (ID3_DOCUMENT_MRZ_READER hMrzReader, id3DocumentProcessingUnit eProcessingUnit)

Returns

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