Class Tesseract4ExecutableOcrEngine

java.lang.Object
com.itextpdf.pdfocr.tesseract4.AbstractTesseract4OcrEngine
com.itextpdf.pdfocr.tesseract4.Tesseract4ExecutableOcrEngine
All Implemented Interfaces:
IOcrEngine, IProductAware

public class Tesseract4ExecutableOcrEngine extends AbstractTesseract4OcrEngine
The implementation of AbstractTesseract4OcrEngine for tesseract OCR.

This class provides possibilities to use features of "tesseract" CL tool (optical character recognition engine for various operating systems). Please note that it's assumed that "tesseract" has already been installed locally.

  • Constructor Details

  • Method Details

    • getPathToExecutable

      public final String getPathToExecutable()
      Gets path to tesseract executable.
      Returns:
      path to tesseract executable
    • setPathToExecutable

      public final void setPathToExecutable (String path)
      Sets path to tesseract executable. By default it's assumed that "tesseract" already exists in the "PATH".
      Parameters:
      path - path to tesseract executable