@@ -161,22 +161,22 @@ enum TextlineOrder {
161
161
* so that the inequality test macros below work.
162
162
*/
163
163
enum PageSegMode {
164
- PSM_OSD_ONLY, // /< Orientation and script detection only.
165
- PSM_AUTO_OSD, // /< Automatic page segmentation with orientation and
164
+ PSM_OSD_ONLY, // /< 0 - Orientation and script detection only.
165
+ PSM_AUTO_OSD, // /< 1 - Automatic page segmentation with orientation and
166
166
// /< script detection. (OSD)
167
- PSM_AUTO_ONLY, // /< Automatic page segmentation, but no OSD, or OCR.
168
- PSM_AUTO, // /< Fully automatic page segmentation, but no OSD.
169
- PSM_SINGLE_COLUMN, // /< Assume a single column of text of variable sizes.
170
- PSM_SINGLE_BLOCK_VERT_TEXT, // /< Assume a single uniform block of vertically
167
+ PSM_AUTO_ONLY, // /< 2 - Automatic page segmentation, but no OSD, or OCR.
168
+ PSM_AUTO, // /< 3 - Fully automatic page segmentation, but no OSD.
169
+ PSM_SINGLE_COLUMN, // /< 4 - Assume a single column of text of variable sizes.
170
+ PSM_SINGLE_BLOCK_VERT_TEXT, // /< 5 - Assume a single uniform block of vertically
171
171
// /< aligned text.
172
- PSM_SINGLE_BLOCK, // /< Assume a single uniform block of text. (Default.)
173
- PSM_SINGLE_LINE, // /< Treat the image as a single text line.
174
- PSM_SINGLE_WORD, // /< Treat the image as a single word.
175
- PSM_CIRCLE_WORD, // /< Treat the image as a single word in a circle.
176
- PSM_SINGLE_CHAR, // /< Treat the image as a single character.
177
- PSM_SPARSE_TEXT, // /< Find as much text as possible in no particular order.
178
- PSM_SPARSE_TEXT_OSD, // /< Sparse text with orientation and script det.
179
- PSM_RAW_LINE, // /< Treat the image as a single text line, bypassing
172
+ PSM_SINGLE_BLOCK, // /< 6 - Assume a single uniform block of text. (Default.)
173
+ PSM_SINGLE_LINE, // /< 7 - Treat the image as a single text line.
174
+ PSM_SINGLE_WORD, // /< 8 - Treat the image as a single word.
175
+ PSM_CIRCLE_WORD, // /< 9 - Treat the image as a single word in a circle.
176
+ PSM_SINGLE_CHAR, // /< 10 - Treat the image as a single character.
177
+ PSM_SPARSE_TEXT, // /< 11 - Find as much text as possible in no particular order.
178
+ PSM_SPARSE_TEXT_OSD, // /< 12 - Sparse text with orientation and script det.
179
+ PSM_RAW_LINE, // /< 13 - Treat the image as a single text line, bypassing
180
180
// /< hacks that are Tesseract-specific.
181
181
182
182
PSM_COUNT // /< Number of enum entries.
0 commit comments