public interface IOcrEngine
IOcrEngine
interface is used for instantiating new OcrReader objects. IOcrEngine
interface provides possibility to perform OCR, to read data from input files and to return the contained text in the required format.
Modifier and Type | Method and Description |
---|---|
void |
createTxtFile(List<File> inputImages, File txtFile)
Performs OCR using provided IOcrEngine for the given list of input images and saves output to a text file using provided path.
|
Map<Integer,List<TextInfo>> |
doImageOcr(File input)
Reads data from the provided input image file and returns retrieved data in the format described below.
|
Map<Integer,List<TextInfo>> doImageOcr(File input)
void createTxtFile(List<File> inputImages, File txtFile)
IOcrEngine
for the given list of input images and saves output to a text file using provided path. Note that a human reading order is not guaranteed due to possible specifics of input images (multi column layout, tables etc)
inputImages
- List
of images to be OCRed
txtFile
- file to be created
Copyright © 1998–2020 iText Group NV. All rights reserved.