public class DocumentReader
extends java.lang.Object
implements java.lang.AutoCloseable, java.io.Serializable
| Constructor and Description |
|---|
DocumentReader()
Creates a new instance of the DocumentReader class.
|
DocumentReader(long handle)
Creates a new instance of the DocumentReader class.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Releases all resources used by this DocumentReader.
|
DocumentImage |
extractFace(DocumentImage image,
java.lang.String documentName)
Extracts a crop of the face in a document.
|
protected void |
finalize()
Finalizer for this class.
|
long |
getHandle()
Gets the native handle.
|
int |
getThreadCount()
Gets the number of threads to use for OCR.
|
TextFieldList |
readDocument(DocumentImage image,
java.lang.String documentName)
Reads all the fields in a document.
|
TextField |
readField(DocumentImage image,
java.lang.String documentName,
java.lang.String fieldName)
Reads a single field in a document.
|
void |
setThreadCount(int threadCount)
Sets the number of threads to use for OCR.
|
public DocumentReader()
throws DocumentException
DocumentException - An error has occurred during Document Library execution.public DocumentReader(long handle)
throws DocumentException
handle - Handle to the DocumentReader.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 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 OCR.DocumentException - An error has occurred during Document Library execution.public DocumentImage extractFace(DocumentImage image, java.lang.String documentName) throws DocumentException
image - The image that contains the document. Must be a realigned BGR image of the document.documentName - The name of the document to be searched. Must be a key loaded in DocumentLibrary.DocumentException - An error has occurred during Document Library execution.public TextFieldList readDocument(DocumentImage image, java.lang.String documentName) throws DocumentException
image - The image that contains the document. Must be a realigned BGR image of the document.documentName - The name of the document to be searched. Must be a key loaded in DocumentLibrary.DocumentException - An error has occurred during Document Library execution.public TextField readField(DocumentImage image, java.lang.String documentName, java.lang.String fieldName) throws DocumentException
image - The image that contains the document. Must be a realigned BGR image of the document.documentName - The name of the document to be searched. Must be a key loaded in DocumentLibrary.fieldName - The name of the field to search.DocumentException - An error has occurred during Document Library execution.Copyright © 2020-2030, id3 Technologies. All rights reserved. eu.id3.document