Class MrzScanner

java.lang.Object
io.scanbot.sdk.mrz.MrzScanner
All Implemented Interfaces:
AutoCloseable

public class MrzScanner extends Object implements AutoCloseable
API for machine readable zone scanning. Required licence feature(s): MrzScanner.
  • Constructor Details

    • MrzScanner

      public MrzScanner(MrzScannerConfiguration configuration) throws LicenseException
      Constructs MrzScanner with the given params.
      Parameters:
      configuration - The configuration to use for the scanner.
      Throws:
      LicenseException - If license requirements for the API are not met
  • Method Details

    • run

      Recognize the MRZ in the given image.
      Parameters:
      image - The image to recognize.
      Returns:
      The recognition result.
      Throws:
      InvalidImageRefException - If an invalid image reference is used
      LicenseException - If license requirements for the API are not met
    • clearResult

      public void clearResult()
      Clears the accumulated results. Should be called after a document has been recognized to the customers satisfaction to prevent a poisoned cache.
    • close

      public void close()
      Closes native resources held by the object.
      Specified by:
      close in interface AutoCloseable
    • finalize

      protected void finalize() throws Throwable
      Overrides:
      finalize in class Object
      Throws:
      Throwable