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

# MrzReader.binarizationMethod Property

Module: MrzReader

Type: int

## Definition

Selection of the binarization method internally used in the algorithm.

Python

    binarization_method: int

Exceptions

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

Dart

    int get binarizationMethod => getBinarizationMethod();
    set binarizationMethod(int value) => setBinarizationMethod(value);

Exceptions

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

C#

    public int binarizationMethod
    {
        get => GetbinarizationMethod();
        set => SetbinarizationMethod(ref value);
    }

Exceptions

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

Java

    public int getBinarizationMethod() throws DocumentException
    public void setBinarizationMethod(int binarizationMethod) throws DocumentException

Exceptions

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

Swift

    public var binarizationMethod: Int
        get {
            return Int(try! getBinarizationMethod())
        }
    }

Exceptions

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

C

    int id3DocumentMrzReader_GetBinarizationMethod (ID3_DOCUMENT_MRZ_READER hMrzReader, int * binarizationMethod)
    int id3DocumentMrzReader_SetBinarizationMethod (ID3_DOCUMENT_MRZ_READER hMrzReader, int binarizationMethod)

Returns

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