-
Notifications
You must be signed in to change notification settings - Fork 31
/
page-seg-modes.txt
42 lines (29 loc) · 1.08 KB
/
page-seg-modes.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# Copied from https://tesseract-ocr.github.io/tessapi/5.x/a01818.html#a338d4c8b5d497b5ec3e6e4269d8ac66aab76fe3ca390d99e070ea60b892ee18ef
PSM_OSD_ONLY
Orientation and script detection only.
PSM_AUTO_OSD
Automatic page segmentation with orientation and script detection. (OSD)
PSM_AUTO_ONLY
Automatic page segmentation, but no OSD, or OCR.
PSM_AUTO
Fully automatic page segmentation, but no OSD.
PSM_SINGLE_COLUMN
Assume a single column of text of variable sizes.
PSM_SINGLE_BLOCK_VERT_TEXT
Assume a single uniform block of vertically aligned text.
PSM_SINGLE_BLOCK
Assume a single uniform block of text. (Default.)
PSM_SINGLE_LINE
Treat the image as a single text line.
PSM_SINGLE_WORD
Treat the image as a single word.
PSM_CIRCLE_WORD
Treat the image as a single word in a circle.
PSM_SINGLE_CHAR
Treat the image as a single character.
PSM_SPARSE_TEXT
Find as much text as possible in no particular order.
PSM_SPARSE_TEXT_OSD
Sparse text with orientation and script det.
PSM_RAW_LINE
Treat the image as a single text line, bypassing hacks that are Tesseract-specific.