Package io.scanbot.sdk.mrz
Class MrzParser
java.lang.Object
io.scanbot.sdk.mrz.MrzParser
- All Implemented Interfaces:
AutoCloseable
API for machine readable zone parsing.
Required licence feature(s): MrzScanner.
-
Constructor Summary
ConstructorsConstructorDescriptionMrzParser(MrzParserConfiguration configuration) Constructs MrzParser with the given params. -
Method Summary
-
Constructor Details
-
MrzParser
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 Details
-
parse
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 interfaceAutoCloseable
-
finalize
-