Class ITessAPI.TessResultRenderer

java.lang.Object
com.sun.jna.PointerType
net.sourceforge.tess4j.ITessAPI.TessResultRenderer
All Implemented Interfaces:
com.sun.jna.NativeMapped
Enclosing interface:
ITessAPI

public static class ITessAPI.TessResultRenderer extends com.sun.jna.PointerType
Interface for rendering tesseract results into a document, such as text, HOCR or pdf. This class is abstract. Specific classes handle individual formats. This interface is then used to inject the renderer class into tesseract when processing images. For simplicity implementing this with tesseract version 3.01, the renderer contains document state that is cleared from document to document just as the TessBaseAPI is. This way the base API can just delegate its rendering functionality to injected renderers, and the renderers can manage the associated state needed for the specific formats in addition to the heuristics for producing it.
  • Constructor Details

    • TessResultRenderer

      public TessResultRenderer(com.sun.jna.Pointer address)
    • TessResultRenderer

      public TessResultRenderer()