public class Tesseract4LibOcrEngine extends AbstractTesseract4OcrEngine
AbstractTesseract4OcrEngine
for tesseract OCR. This class provides possibilities to use features of "tesseract" using tess4j. Please note that this class is not thread-safe, in other words this Tesseract engine cannot be used for multithreaded processing. You should create one instance per thread
Constructor and Description |
---|
Tesseract4LibOcrEngine(Tesseract4OcrEngineProperties tesseract4OcrEngineProperties)
Creates a new Tesseract4LibOcrEngine instance.
|
Modifier and Type | Method and Description |
---|---|
net.sourceforge.tess4j.ITesseract |
getTesseractInstance()
Gets tesseract instance.
|
void |
initializeTesseract(OutputFormat outputFormat)
Initializes instance of tesseract if it haven't been already initialized or it have been disposed and sets all the required properties.
|
createTxtFile, createTxtFile, doImageOcr, doImageOcr, doImageOcr, doImageOcr, doTesseractOcr, doTesseractOcr, getLanguagesAsString, getMetaInfoContainer, getProductData, getTesseract4OcrEngineProperties, identifyOsType, isWindows, setTesseract4OcrEngineProperties, validateLanguages
public Tesseract4LibOcrEngine(Tesseract4OcrEngineProperties tesseract4OcrEngineProperties)
Tesseract4LibOcrEngine
instance.
tesseract4OcrEngineProperties
- set of properteis
public net.sourceforge.tess4j.ITesseract getTesseractInstance()
ITesseract
instance
public void initializeTesseract(OutputFormat outputFormat)
outputFormat
- selected OutputFormat
for tesseract
Copyright © 1998–2022 iText Group NV. All rights reserved.