Package org.sikuli.script
Enum OCR.PSM
- java.lang.Object
-
- java.lang.Enum<OCR.PSM>
-
- org.sikuli.script.OCR.PSM
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<OCR.PSM>
- Enclosing class:
- OCR
public static enum OCR.PSM extends java.lang.Enum<OCR.PSM>
Page segmentation modes.0 OSD_ONLY Orientation and script detection (OSD) only. 1 AUTO_OSD Automatic page segmentation with OSD. 2 AUTO_ONLY Automatic page segmentation, but no OSD, or OCR. 3 AUTO Fully automatic page segmentation, but no OSD. (Default) 4 SINGLE_COLUMN Assume a single column of text of variable sizes. 5 SINGLE_BLOCK_VERT_TEXT Assume a single uniform block of vertically aligned text. 6 SINGLE_COLUMN Assume a single uniform block of text. 7 SINGLE_LINE Treat the image as a single text line. 8 SINGLE_WORD Treat the image as a single word. 9 CIRCLE_WORD Treat the image as a single word in a circle. 10 SINGLE_CHAR Treat the image as a single character. 11 SPARSE_TEXT Sparse text. Find as much text as possible in no particular order. 12 SPARSE_TEXT_OSD Sparse text with OSD. 13 RAW_LINE Raw line. Treat the image as a single text line, bypassing hacks that are Tesseract-specific.
Usage: OCR.PSM.MODE
-
-
Enum Constant Summary
Enum Constants Enum Constant Description AUTO
AUTO_ONLY
AUTO_OSD
CIRCLE_WORD
OSD_ONLY
RAW_LINE
SINGLE_BLOCK
SINGLE_BLOCK_VERT_TEXT
SINGLE_CHAR
SINGLE_COLUMN
SINGLE_LINE
SINGLE_WORD
SPARSE_TEXT
SPARSE_TEXT_OSD
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static OCR.PSM
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static OCR.PSM[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
OSD_ONLY
public static final OCR.PSM OSD_ONLY
-
AUTO_OSD
public static final OCR.PSM AUTO_OSD
-
AUTO_ONLY
public static final OCR.PSM AUTO_ONLY
-
AUTO
public static final OCR.PSM AUTO
-
SINGLE_COLUMN
public static final OCR.PSM SINGLE_COLUMN
-
SINGLE_BLOCK_VERT_TEXT
public static final OCR.PSM SINGLE_BLOCK_VERT_TEXT
-
SINGLE_BLOCK
public static final OCR.PSM SINGLE_BLOCK
-
SINGLE_LINE
public static final OCR.PSM SINGLE_LINE
-
SINGLE_WORD
public static final OCR.PSM SINGLE_WORD
-
CIRCLE_WORD
public static final OCR.PSM CIRCLE_WORD
-
SINGLE_CHAR
public static final OCR.PSM SINGLE_CHAR
-
SPARSE_TEXT
public static final OCR.PSM SPARSE_TEXT
-
SPARSE_TEXT_OSD
public static final OCR.PSM SPARSE_TEXT_OSD
-
RAW_LINE
public static final OCR.PSM RAW_LINE
-
-
Method Detail
-
values
public static OCR.PSM[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (OCR.PSM c : OCR.PSM.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static OCR.PSM valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-