Package io.scanbot.sdk.mrz
Class MrzParser
- java.lang.Object
-
- io.scanbot.sdk.mrz.MrzParser
-
- All Implemented Interfaces:
java.lang.AutoCloseable
public class MrzParser extends java.lang.Object implements java.lang.AutoCloseableAPI for machine readable zone parsing. Required licence feature(s): MrzScanner.
-
-
Constructor Summary
Constructors Constructor Description MrzParser(MrzParserConfiguration configuration)Constructs MrzParser with the given params.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()Closes native resources held by the object.protected voidfinalize()MrzScannerResultparse(java.lang.String text)Parse the MRZ string.
-
-
-
Constructor Detail
-
MrzParser
public MrzParser(MrzParserConfiguration configuration) throws LicenseException
Constructs MrzParser with the given params.- Parameters:
configuration- The configuration to use for the parser.- Throws:
LicenseException- If license requirements for the API are not met
-
-
Method Detail
-
parse
public MrzScannerResult parse(java.lang.String text) throws InvalidImageRefException, LicenseException
Parse the MRZ string.- Parameters:
text- The MRZ string to parse. Should be formatted with newlines.- Returns:
- The recognition result.
- Throws:
InvalidImageRefException- If an invalid image reference is usedLicenseException- If license requirements for the API are not met
-
close
public void close()
Closes native resources held by the object.- Specified by:
closein interfacejava.lang.AutoCloseable
-
finalize
protected void finalize() throws java.lang.Throwable- Overrides:
finalizein classjava.lang.Object- Throws:
java.lang.Throwable
-
-