Package net.sourceforge.tess4j
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
Modifier and TypeFieldDescriptionstatic final int
Fully automatic page segmentation, but no OSD.static final int
Automatic page segmentation, but no OSD, or OCR.static final int
Automatic page segmentation with orientation and script detection.static final int
Treat the image as a single word in a circle.static final int
Number of enum entries.static final int
Orientation and script detection only.static final int
Treat the image as a single text line, bypassing hacks that are Tesseract-specific.static final int
Assume a single uniform block of text.static final int
Assume a single uniform block of vertically aligned text.static final int
Treat the image as a single character.static final int
Assume a single column of text of variable sizes.static final int
Treat the image as a single text line.static final int
Treat the image as a single word.static final int
Find as much text as possible in no particular order.static final int
Sparse text with orientation and script detection.
-
Field Details
-
PSM_OSD_ONLY
static final int PSM_OSD_ONLYOrientation and script detection only.- See Also:
-
PSM_AUTO_OSD
static final int PSM_AUTO_OSDAutomatic page segmentation with orientation and script detection. (OSD)- See Also:
-
PSM_AUTO_ONLY
static final int PSM_AUTO_ONLYAutomatic page segmentation, but no OSD, or OCR.- See Also:
-
PSM_AUTO
static final int PSM_AUTOFully automatic page segmentation, but no OSD.- See Also:
-
PSM_SINGLE_COLUMN
static final int PSM_SINGLE_COLUMNAssume a single column of text of variable sizes.- See Also:
-
PSM_SINGLE_BLOCK_VERT_TEXT
static final int PSM_SINGLE_BLOCK_VERT_TEXTAssume a single uniform block of vertically aligned text.- See Also:
-
PSM_SINGLE_BLOCK
static final int PSM_SINGLE_BLOCKAssume a single uniform block of text.- See Also:
-
PSM_SINGLE_LINE
static final int PSM_SINGLE_LINETreat the image as a single text line.- See Also:
-
PSM_SINGLE_WORD
static final int PSM_SINGLE_WORDTreat the image as a single word.- See Also:
-
PSM_CIRCLE_WORD
static final int PSM_CIRCLE_WORDTreat the image as a single word in a circle.- See Also:
-
PSM_SINGLE_CHAR
static final int PSM_SINGLE_CHARTreat the image as a single character.- See Also:
-
PSM_SPARSE_TEXT
static final int PSM_SPARSE_TEXTFind as much text as possible in no particular order.- See Also:
-
PSM_SPARSE_TEXT_OSD
static final int PSM_SPARSE_TEXT_OSDSparse text with orientation and script detection.- See Also:
-
PSM_RAW_LINE
static final int PSM_RAW_LINETreat the image as a single text line, bypassing hacks that are Tesseract-specific.- See Also:
-
PSM_COUNT
static final int PSM_COUNTNumber of enum entries.- See Also:
-