Enum Class PageSegmentationMode

java.lang.Object
java.lang.Enum<PageSegmentationMode>
com.datalogics.PDFL.PageSegmentationMode
All Implemented Interfaces:
Serializable, Comparable<PageSegmentationMode>, Constable

public enum PageSegmentationMode extends Enum<PageSegmentationMode>
Specify how the OCR engine will view the page, and how it detects text segments.
  • Enum Constant Details

    • OSDONLY

      public static final PageSegmentationMode OSDONLY
      Orientation and script detection (OSD).
    • AUTOMATIC_OSD

      public static final PageSegmentationMode AUTOMATIC_OSD
      Automatic page segmentation with OSD.
    • AUTOMATIC

      public static final PageSegmentationMode AUTOMATIC
      Automatic without OSD.
    • SINGLE_COLUMN

      public static final PageSegmentationMode SINGLE_COLUMN
      Assume a single column of text.
    • SINGLE_BLOCK_VERTICAL

      public static final PageSegmentationMode SINGLE_BLOCK_VERTICAL
      Assume a single block of vertically aligned text.
    • SINGLE_BLOCK

      public static final PageSegmentationMode SINGLE_BLOCK
      Assume a single block of text.
    • SINGLE_LINE

      public static final PageSegmentationMode SINGLE_LINE
      Assume a single line of text.
    • SINGLE_WORD

      public static final PageSegmentationMode SINGLE_WORD
      Assume a single word.
    • CIRCLE_WORD

      public static final PageSegmentationMode CIRCLE_WORD
      Assume a single word in a circle.
    • SINGLE_CHAR

      public static final PageSegmentationMode SINGLE_CHAR
      Assume a single char.
    • SPARSE_TEXT

      public static final PageSegmentationMode SPARSE_TEXT
      Find all text in no particular order.
    • SPARSE_TEXT_OSD

      public static final PageSegmentationMode SPARSE_TEXT_OSD
      Sparse text with OSD.
    • RAW_LINE

      public static final PageSegmentationMode RAW_LINE
      Treat as a raw line with no input processing.
  • Method Details

    • values

      public static PageSegmentationMode[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static PageSegmentationMode valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null