Package org.sikuli.script
Enum OCR.PSM
- All Implemented Interfaces:
Serializable,Comparable<OCR.PSM>,java.lang.constant.Constable
- Enclosing class:
- OCR
public static enum OCR.PSM extends 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.
-
Nested Class Summary
-
Enum Constant Summary
Enum Constants Enum Constant Description AUTOAUTO_ONLYAUTO_OSDCIRCLE_WORDOSD_ONLYRAW_LINESINGLE_BLOCKSINGLE_BLOCK_VERT_TEXTSINGLE_CHARSINGLE_COLUMNSINGLE_LINESINGLE_WORDSPARSE_TEXTSPARSE_TEXT_OSD -
Method Summary
-
Enum Constant Details
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-