DocumentReader class

Reads text field on a document using optical character recognition (OCR).

Implemented types

Constructors

DocumentReader()
Creates a new instance of the DocumentReader class.
DocumentReader.fromHandle(Pointer<id3DocumentReader> handle)
Creates a new instance of the DocumentReader class.

Properties

handle Pointer<id3DocumentReader>
Gets the native handle. return The native handle.
no setter
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
threadCount int
Number of threads to use for OCR. Hint: Default value is 1. Allocating more than 1 thread here can increase the speed of the process.
getter/setter pair

Methods

dispose() → void
Releases all resources used by this DocumentReader.
extractFace(DocumentImage image, String? documentName) DocumentImage
Extracts a crop of the face in a document.
getThreadCount() int
Gets the number of threads to use for OCR. Hint: Default value is 1. Allocating more than 1 thread here can increase the speed of the process.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
readDocument(DocumentImage image, String? documentName) TextFieldList
Reads all the fields in a document.
readField(DocumentImage image, String? documentName, String? fieldName) TextField
Reads a single field in a document.
setThreadCount(int threadCount) → void
Sets the number of threads to use for OCR. Hint: Default value is 1. Allocating more than 1 thread here can increase the speed of the process.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited