DocumentReader Class¶
Namespace: id3.Document
Definition¶
Reads text field on a document using optical character recognition (OCR).
class DocumentReader
class DocumentReader implements Finalizable
public partial class DocumentReader
public class DocumentReader implements AutoCloseable, Serializable
public class DocumentReader
typedef struct id3DocumentReader *ID3_DOCUMENT_READER;
Usage¶
documentReaderInstance = DocumentReader()
# ...
Explicit destruction
# ...
del documentReaderInstance
final documentReaderInstance = sdk.DocumentReader();
// ...
Explicit destruction
// ...
documentReaderInstance.dispose()
using (var documentReaderInstance = new DocumentReader())
{
// ...
}
Explicit destruction
var documentReaderInstance = new DocumentReader()
// ...
documentReaderInstance.Dispose()
try (DocumentReader documentReaderInstance = new DocumentReader()) {
// ...
}
Explicit destruction
DocumentReader documentReaderInstance = new DocumentReader();
// ...
documentReaderInstance.close();
private var documentReaderInstance: DocumentReader? = nil
documentReaderInstance = try DocumentReader()
ID3_DOCUMENT_READER hDocumentReader{};
int err = id3DocumentReader_Initialize(&hDocumentReader);
if (err == ID3_SUCCESS) {
// ...
id3DocumentReader_Dispose(&hDocumentReader);
}
Properties¶
Name |
Type |
Description |
---|---|---|
int |
Number of threads to use for OCR. |
Methods¶
Name |
Description |
---|---|
Extracts a crop of the face in a document. |
|
Reads all the fields in a document. |
|
Reads a single field in a document. |