Package io.scanbot.sdk.mrz
Class MrzScannerResult
java.lang.Object
io.scanbot.sdk.mrz.MrzScannerResult
- All Implemented Interfaces:
AutoCloseable
Container for result of MRZ scanning attempt.
-
Constructor Summary
ConstructorsConstructorDescriptionMrzScannerResult(boolean success, String rawMRZ, GenericDocument document) Constructs MrzScannerResult with the given params.MrzScannerResult(String rawMRZ, GenericDocument document) Constructs MrzScannerResult with default parameters. -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Closes native resources (images) held by the object.Getter for document field.Getter for rawMRZ field.booleanGetter for success field.
-
Constructor Details
-
MrzScannerResult
Constructs MrzScannerResult with the given params.- Parameters:
success- Scanning successful. Default is `false`.rawMRZ- Raw string value of MRZ.document- Generic document containing MRZ data.
-
MrzScannerResult
Constructs MrzScannerResult with default parameters.- Parameters:
rawMRZ- Raw string value of MRZ.document- Generic document containing MRZ data.
-
-
Method Details
-
getSuccess
public boolean getSuccess()Getter for success field. See constructor documentation for more information about the field.- Returns:
- success
-
getRawMRZ
Getter for rawMRZ field. See constructor documentation for more information about the field.- Returns:
- rawMRZ
-
getDocument
Getter for document field. See constructor documentation for more information about the field.- Returns:
- document
-
close
public void close()Closes native resources (images) held by the object.- Specified by:
closein interfaceAutoCloseable
-