Interface ITessAPI

  • All Known Subinterfaces:
    TessAPI
    All Known Implementing Classes:
    TessAPI1, Tesseract1

    public interface ITessAPI
    An interface represents common TessAPI classes/constants.
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Interface Description
      static interface  ITessAPI.CANCEL_FUNC
      Callback for cancel_func.
      static class  ITessAPI.EANYCODE_CHAR
      It should be noted that the format for char_code for version 2.0 and beyond is UTF-8, which means that ASCII characters will come out as one structure but other characters will be returned in two or more instances of this structure with a single byte of the UTF-8 code in each, but each will have the same bounding box.

      Programs which want to handle languages with different characters sets will need to handle extended characters appropriately, but all code needs to be prepared to receive UTF-8 coded characters for characters such as bullet and fancy quotes.
      static class  ITessAPI.ETEXT_DESC
      Description of the output of the OCR engine.
      static class  ITessAPI.TessBaseAPI
      Base class for all tesseract APIs.
      static interface  ITessAPI.TessCancelFunc  
      static class  ITessAPI.TessChoiceIterator  
      static class  ITessAPI.TessMutableIterator
      MutableIterator adds access to internal data structures.
      static interface  ITessAPI.TessOcrEngineMode
      When Tesseract/Cube is initialized we can choose to instantiate/load/run only the Tesseract part, only the Cube part or both along with the combiner.
      static interface  ITessAPI.TessOrientation
      +------------------+ | 1 Aaaa Aaaa Aaaa | | Aaa aa aaa aa | | aaaaaa A aa aaa.
      static class  ITessAPI.TessPageIterator
      Class to iterate over tesseract page structure, providing access to all levels of the page hierarchy, without including any tesseract headers or having to handle any tesseract structures.
      WARNING! This class points to data held within the TessBaseAPI class, and therefore can only be used while the TessBaseAPI class still exists and has not been subjected to a call of Init, SetImage, Recognize, Clear, End DetectOS, or anything else that changes the internal PAGE_RES.
      static interface  ITessAPI.TessPageIteratorLevel
      Enum of the elements of the page hierarchy, used in ResultIterator to provide functions that operate on each level without having to have 5x as many functions.
      static interface  ITessAPI.TessPageSegMode
      Possible modes for page layout analysis.
      static interface  ITessAPI.TessParagraphJustification
      NOTA BENE: Fully justified paragraphs (text aligned to both left and right margins) are marked by Tesseract with JUSTIFICATION_LEFT if their text is written with a left-to-right script and with JUSTIFICATION_RIGHT if their text is written in a right-to-left script.

      Interpretation for text read in vertical lines: "Left" is wherever the starting reading position is.
      static interface  ITessAPI.TessPolyBlockType
      Possible types for a POLY_BLOCK or ColPartition.
      static interface  ITessAPI.TessProgressFunc  
      static class  ITessAPI.TessResultIterator
      Iterator for tesseract results that is capable of iterating in proper reading order over Bi Directional (e.g.
      static class  ITessAPI.TessResultRenderer
      Interface for rendering tesseract results into a document, such as text, HOCR or pdf.
      static interface  ITessAPI.TessTextlineOrder
      The text lines are read in the given sequence.

      In English, the order is top-to-bottom.
      static interface  ITessAPI.TessWritingDirection
      The grapheme clusters within a line of text are laid out logically in this direction, judged when looking at the text line rotated so that its Orientation is "page up".

      For English text, the writing direction is left-to-right.
      static class  ITessAPI.TimeVal  
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static int FALSE  
      static int TRUE