DocumentReader.readField Method¶
Module: DocumentReader
Definition¶
Reads a single field in a document.
read_field(self, image: DocumentImage, document_name: str, field_name: str) -> TextField
Parameters
imageDocumentImagein The image that contains the document. Must be a realigned BGR image of the document.document_namestrin The name of the document to be searched. Must be a key loaded in DocumentLibrary.field_namestrin The name of the field to search.
Returns
Read Text in the specified field.
Exceptions
An error has occurred during Document Library execution.
TextField readField(DocumentImage image, String? documentName, String? fieldName)
Parameters
imageDocumentImagein The image that contains the document. Must be a realigned BGR image of the document.documentNameStringin The name of the document to be searched. Must be a key loaded in DocumentLibrary.fieldNameStringin The name of the field to search.
Returns
Read Text in the specified field.
Exceptions
An error has occurred during Document Library execution.
public TextField ReadField(DocumentImage image, string documentName, string fieldName)
Parameters
imageDocumentImagein The image that contains the document. Must be a realigned BGR image of the document.documentNamestringin The name of the document to be searched. Must be a key loaded in DocumentLibrary.fieldNamestringin The name of the field to search.
Returns
Read Text in the specified field.
Exceptions
An error has occurred during Document Library execution.
public TextField readField(DocumentImage image, String documentName, String fieldName) throws DocumentException
Parameters
imageDocumentImagein The image that contains the document. Must be a realigned BGR image of the document.documentNameStringin The name of the document to be searched. Must be a key loaded in DocumentLibrary.fieldNameStringin The name of the field to search.
Returns
Read Text in the specified field.
Exceptions
An error has occurred during Document Library execution.
public func readField(image: DocumentImage, documentName: String, fieldName: String) throws -> TextField
Parameters
imageDocumentImagein The image that contains the document. Must be a realigned BGR image of the document.documentNameStringin The name of the document to be searched. Must be a key loaded in DocumentLibrary.fieldNameStringin The name of the field to search.
Returns
Read Text in the specified field.
Exceptions
An error has occurred during Document Library execution.
int id3DocumentReader_ReadField (
ID3_DOCUMENT_READER hDocumentReader,
ID3_DOCUMENT_IMAGE hImage,
const char * documentName,
const char * fieldName,
ID3_DOCUMENT_TEXT_FIELD hReadText)
Parameters
hDocumentReaderID3_DOCUMENT_READERin Handle to the DocumentReader object.hImageID3_DOCUMENT_IMAGEin The image that contains the document. Must be a realigned BGR image of the document.documentNameconst char *in The name of the document to be searched. Must be a key loaded in DocumentLibrary.fieldNameconst char *in The name of the field to search.hReadTextID3_DOCUMENT_TEXT_FIELDout Read Text in the specified field.
Returns