.. index:: 
  !MrzReader.binarizationMethod Property

.. _id3_document_mrz_reader_binarization_method_class_member:

===============================================================================
MrzReader.binarizationMethod Property
===============================================================================

Module: :ref:`MrzReader<id3_document_mrz_reader_class>`

Type: int

Definition
----------

Selection of the binarization method internally used in the algorithm.


.. tab-set::

  .. tab-item:: Python
    :sync: Python

    .. code:: Python

      binarization_method: int


    **Exceptions**

      .. line-block::

        :ref:`DocumentException<id3_document_document_exception>`
        An error has occurred during Document Library execution.

  .. tab-item:: Dart
    :sync: Dart

    .. code:: Dart

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


    **Exceptions**

      .. line-block::

        :ref:`DocumentException<id3_document_document_exception>`
        An error has occurred during Document Library execution.

  .. tab-item:: C#
    :sync: C#

    .. code:: C#

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


    **Exceptions**

      .. line-block::

        :ref:`DocumentException<id3_document_document_exception>`
        An error has occurred during Document Library execution.

  .. tab-item:: Java
    :sync: Java

    .. code:: Java

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


    **Exceptions**

      .. line-block::

        :ref:`DocumentException<id3_document_document_exception>`
        An error has occurred during Document Library execution.

  .. tab-item:: Swift
    :sync: Swift

    .. code:: Swift

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


    **Exceptions**

      .. line-block::

        :ref:`DocumentException<id3_document_document_exception>`
        An error has occurred during Document Library execution.

  .. tab-item:: C
    :sync: C

    .. code:: C

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

    **Returns**
   
      .. line-block::

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

