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

      Fields 
      Modifier and Type Field Description
      static int PSM_AUTO
      Fully automatic page segmentation, but no OSD.
      static int PSM_AUTO_ONLY
      Automatic page segmentation, but no OSD, or OCR.
      static int PSM_AUTO_OSD
      Automatic page segmentation with orientation and script detection.
      static int PSM_CIRCLE_WORD
      Treat the image as a single word in a circle.
      static int PSM_COUNT
      Number of enum entries.
      static int PSM_OSD_ONLY
      Orientation and script detection only.
      static int PSM_SINGLE_BLOCK
      Assume a single uniform block of text.
      static int PSM_SINGLE_BLOCK_VERT_TEXT
      Assume a single uniform block of vertically aligned text.
      static int PSM_SINGLE_CHAR
      Treat the image as a single character.
      static int PSM_SINGLE_COLUMN
      Assume a single column of text of variable sizes.
      static int PSM_SINGLE_LINE
      Treat the image as a single text line.
      static int PSM_SINGLE_WORD
      Treat the image as a single word.
      static int PSM_SPARSE_TEXT
      Find as much text as possible in no particular order.
      static int PSM_SPARSE_TEXT_OSD
      Sparse text with orientation and script detection.
    • Field Detail

      • PSM_OSD_ONLY

        static final int PSM_OSD_ONLY
        Orientation and script detection only.
        See Also:
        Constant Field Values
      • PSM_AUTO_OSD

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

        static final int PSM_AUTO_ONLY
        Automatic page segmentation, but no OSD, or OCR.
        See Also:
        Constant Field Values
      • PSM_AUTO

        static final int PSM_AUTO
        Fully automatic page segmentation, but no OSD.
        See Also:
        Constant Field Values
      • PSM_SINGLE_COLUMN

        static final int PSM_SINGLE_COLUMN
        Assume a single column of text of variable sizes.
        See Also:
        Constant Field Values
      • PSM_SINGLE_BLOCK_VERT_TEXT

        static final int PSM_SINGLE_BLOCK_VERT_TEXT
        Assume a single uniform block of vertically aligned text.
        See Also:
        Constant Field Values
      • PSM_SINGLE_BLOCK

        static final int PSM_SINGLE_BLOCK
        Assume a single uniform block of text.
        See Also:
        Constant Field Values
      • PSM_SINGLE_LINE

        static final int PSM_SINGLE_LINE
        Treat the image as a single text line.
        See Also:
        Constant Field Values
      • PSM_SINGLE_WORD

        static final int PSM_SINGLE_WORD
        Treat the image as a single word.
        See Also:
        Constant Field Values
      • PSM_CIRCLE_WORD

        static final int PSM_CIRCLE_WORD
        Treat the image as a single word in a circle.
        See Also:
        Constant Field Values
      • PSM_SINGLE_CHAR

        static final int PSM_SINGLE_CHAR
        Treat the image as a single character.
        See Also:
        Constant Field Values
      • PSM_SPARSE_TEXT

        static final int PSM_SPARSE_TEXT
        Find as much text as possible in no particular order.
        See Also:
        Constant Field Values
      • PSM_SPARSE_TEXT_OSD

        static final int PSM_SPARSE_TEXT_OSD
        Sparse text with orientation and script detection.
        See Also:
        Constant Field Values