20 #ifndef TESSERACT_CCSTRUCT_PUBLICTYPES_H__
21 #define TESSERACT_CCSTRUCT_PUBLICTYPES_H__
170 #define PSM_OSD_ENABLED(pageseg_mode) ((pageseg_mode) <= PSM_AUTO_OSD)
171 #define PSM_COL_FIND_ENABLED(pageseg_mode) \
172 ((pageseg_mode) >= PSM_AUTO_OSD && (pageseg_mode) <= PSM_AUTO)
173 #define PSM_BLOCK_FIND_ENABLED(pageseg_mode) \
174 ((pageseg_mode) >= PSM_AUTO_OSD && (pageseg_mode) <= PSM_SINGLE_COLUMN)
175 #define PSM_LINE_FIND_ENABLED(pageseg_mode) \
176 ((pageseg_mode) >= PSM_AUTO_OSD && (pageseg_mode) <= PSM_SINGLE_BLOCK)
177 #define PSM_WORD_FIND_ENABLED(pageseg_mode) \
178 ((pageseg_mode) >= PSM_AUTO_OSD && (pageseg_mode) <= PSM_SINGLE_LINE)
249 #endif // TESSERACT_CCSTRUCT_PUBLICTYPES_H__
Treat the image as a single text line.
Treat the image as a single word.
Fully automatic page segmentation, but no OSD.
Automatic page segmentation, but no OSD, or OCR.
bool PTIsLineType(PolyBlockType type)
Orientation and script detection only.
Treat the image as a single character.
bool PTIsTextType(PolyBlockType type)
Treat the image as a single word in a circle.
Assume a single column of text of variable sizes.
bool PTIsImageType(PolyBlockType type)
const char * kPolyBlockNames[]
Assume a single uniform block of text. (Default.)