public class MrzReader
extends java.lang.Object
implements java.lang.AutoCloseable, java.io.Serializable
| Constructor and Description |
|---|
MrzReader()
Creates a new instance of the MrzReader class.
|
MrzReader(long handle)
Creates a new instance of the MrzReader class.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Releases all resources used by this MrzReader.
|
protected void |
finalize()
Finalizer for this class.
|
int |
getBinarizationMethod()
Gets the selection of the binarization method internally used in the algorithm.
|
long |
getHandle()
Gets the native handle.
|
DocumentModel |
getModel()
Gets the AI model used to detect the MRZ.
|
ProcessingUnit |
getProcessingUnit()
Gets the processing unit where to run the detection process.
|
int |
getThreadCount()
Gets the number of threads to use for reading.
|
MrzReadingResult |
readMrz(DocumentImage image)
Detects and reads an MRZ in an image.
|
void |
setBinarizationMethod(int binarizationMethod)
Sets the selection of the binarization method internally used in the algorithm.
|
void |
setModel(DocumentModel model)
Sets the AI model used to detect the MRZ.
|
void |
setProcessingUnit(ProcessingUnit processingUnit)
Sets the processing unit where to run the detection process.
|
void |
setThreadCount(int threadCount)
Sets the number of threads to use for reading.
|
public MrzReader()
throws DocumentException
DocumentException - An error has occurred during Document Library execution.public MrzReader(long handle)
throws DocumentException
handle - Handle to the MrzReader.DocumentException - An error has occurred during Document Library execution.public void close()
close in interface java.lang.AutoCloseableprotected void finalize()
finalize in class java.lang.Objectpublic long getHandle()
public int getBinarizationMethod()
throws DocumentException
DocumentException - An error has occurred during Document Library execution.public void setBinarizationMethod(int binarizationMethod)
throws DocumentException
binarizationMethod - Selection of the binarization method internally used in the algorithm.DocumentException - An error has occurred during Document Library execution.public DocumentModel getModel() throws DocumentException
DocumentException - An error has occurred during Document Library execution.public void setModel(DocumentModel model) throws DocumentException
model - AI model used to detect the MRZ.DocumentException - An error has occurred during Document Library execution.public ProcessingUnit getProcessingUnit() throws DocumentException
DocumentException - An error has occurred during Document Library execution.public void setProcessingUnit(ProcessingUnit processingUnit) throws DocumentException
processingUnit - Processing unit where to run the detection process.DocumentException - An error has occurred during Document Library execution.public int getThreadCount()
throws DocumentException
DocumentException - An error has occurred during Document Library execution.public void setThreadCount(int threadCount)
throws DocumentException
threadCount - Number of threads to use for reading.DocumentException - An error has occurred during Document Library execution.public MrzReadingResult readMrz(DocumentImage image) throws DocumentException
image - Source image to processDocumentException - An error has occurred during Document Library execution.Copyright © 2020-2030, id3 Technologies. All rights reserved. eu.id3.document