Interface ITessAPI.TessPageSegMode

Enclosing interface:
ITessAPI

public static interface ITessAPI.TessPageSegMode
Possible modes for page layout analysis. These *must* be kept in order of decreasing amount of layout analysis to be done, except for OSD_ONLY, so that the inequality test macros below work.
  • Field Summary Link icon

    Fields
    Modifier and Type
    Field
    Description
    static final int
    Fully automatic page segmentation, but no OSD.
    static final int
    Automatic page segmentation, but no OSD, or OCR.
    static final int
    Automatic page segmentation with orientation and script detection.
    static final int
    Treat the image as a single word in a circle.
    static final int
    Number of enum entries.
    static final int
    Orientation and script detection only.
    static final int
    Treat the image as a single text line, bypassing hacks that are Tesseract-specific.
    static final int
    Assume a single uniform block of text.
    static final int
    Assume a single uniform block of vertically aligned text.
    static final int
    Treat the image as a single character.
    static final int
    Assume a single column of text of variable sizes.
    static final int
    Treat the image as a single text line.
    static final int
    Treat the image as a single word.
    static final int
    Find as much text as possible in no particular order.
    static final int
    Sparse text with orientation and script detection.
  • Field Details Link icon

    • PSM_OSD_ONLY Link icon

      static final int PSM_OSD_ONLY
      Orientation and script detection only.
      See Also:
    • PSM_AUTO_OSD Link icon

      static final int PSM_AUTO_OSD
      Automatic page segmentation with orientation and script detection. (OSD)
      See Also:
    • PSM_AUTO_ONLY Link icon

      static final int PSM_AUTO_ONLY
      Automatic page segmentation, but no OSD, or OCR.
      See Also:
    • PSM_AUTO Link icon

      static final int PSM_AUTO
      Fully automatic page segmentation, but no OSD.
      See Also:
    • PSM_SINGLE_COLUMN Link icon

      static final int PSM_SINGLE_COLUMN
      Assume a single column of text of variable sizes.
      See Also:
    • PSM_SINGLE_BLOCK_VERT_TEXT Link icon

      static final int PSM_SINGLE_BLOCK_VERT_TEXT
      Assume a single uniform block of vertically aligned text.
      See Also:
    • PSM_SINGLE_BLOCK Link icon

      static final int PSM_SINGLE_BLOCK
      Assume a single uniform block of text.
      See Also:
    • PSM_SINGLE_LINE Link icon

      static final int PSM_SINGLE_LINE
      Treat the image as a single text line.
      See Also:
    • PSM_SINGLE_WORD Link icon

      static final int PSM_SINGLE_WORD
      Treat the image as a single word.
      See Also:
    • PSM_CIRCLE_WORD Link icon

      static final int PSM_CIRCLE_WORD
      Treat the image as a single word in a circle.
      See Also:
    • PSM_SINGLE_CHAR Link icon

      static final int PSM_SINGLE_CHAR
      Treat the image as a single character.
      See Also:
    • PSM_SPARSE_TEXT Link icon

      static final int PSM_SPARSE_TEXT
      Find as much text as possible in no particular order.
      See Also:
    • PSM_SPARSE_TEXT_OSD Link icon

      static final int PSM_SPARSE_TEXT_OSD
      Sparse text with orientation and script detection.
      See Also:
    • PSM_RAW_LINE Link icon

      static final int PSM_RAW_LINE
      Treat the image as a single text line, bypassing hacks that are Tesseract-specific.
      See Also:
    • PSM_COUNT Link icon

      static final int PSM_COUNT
      Number of enum entries.
      See Also: