Package com.datalogics.PDFL
Enum Class PageSegmentationMode
- All Implemented Interfaces:
Serializable,Comparable<PageSegmentationMode>,Constable
Specify how the OCR engine will view the page, and how it detects text segments.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAutomatic without OSD.Automatic page segmentation with OSD.Assume a single word in a circle.Orientation and script detection (OSD).Treat as a raw line with no input processing.Assume a single block of text.Assume a single block of vertically aligned text.Assume a single char.Assume a single column of text.Assume a single line of text.Assume a single word.Find all text in no particular order.Sparse text with OSD. -
Method Summary
Modifier and TypeMethodDescriptionstatic PageSegmentationModeReturns the enum constant of this class with the specified name.static PageSegmentationMode[]values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
OSDONLY
Orientation and script detection (OSD). -
AUTOMATIC_OSD
Automatic page segmentation with OSD. -
AUTOMATIC
Automatic without OSD. -
SINGLE_COLUMN
Assume a single column of text. -
SINGLE_BLOCK_VERTICAL
Assume a single block of vertically aligned text. -
SINGLE_BLOCK
Assume a single block of text. -
SINGLE_LINE
Assume a single line of text. -
SINGLE_WORD
Assume a single word. -
CIRCLE_WORD
Assume a single word in a circle. -
SINGLE_CHAR
Assume a single char. -
SPARSE_TEXT
Find all text in no particular order. -
SPARSE_TEXT_OSD
Sparse text with OSD. -
RAW_LINE
Treat as a raw line with no input processing.
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-