| 108 | } |
| 109 | |
| 110 | void PrintHelpForPSM() { |
| 111 | const char* msg = |
| 112 | "Page segmentation modes:\n" |
| 113 | " 0 Orientation and script detection (OSD) only.\n" |
| 114 | " 1 Automatic page segmentation with OSD.\n" |
| 115 | " 2 Automatic page segmentation, but no OSD, or OCR.\n" |
| 116 | " 3 Fully automatic page segmentation, but no OSD. (Default)\n" |
| 117 | " 4 Assume a single column of text of variable sizes.\n" |
| 118 | " 5 Assume a single uniform block of vertically aligned text.\n" |
| 119 | " 6 Assume a single uniform block of text.\n" |
| 120 | " 7 Treat the image as a single text line.\n" |
| 121 | " 8 Treat the image as a single word.\n" |
| 122 | " 9 Treat the image as a single word in a circle.\n" |
| 123 | " 10 Treat the image as a single character.\n" |
| 124 | " 11 Sparse text. Find as much text as possible in no" |
| 125 | " particular order.\n" |
| 126 | " 12 Sparse text with OSD.\n" |
| 127 | " 13 Raw line. Treat the image as a single text line,\n" |
| 128 | "\t\t\tbypassing hacks that are Tesseract-specific.\n"; |
| 129 | |
| 130 | printf("%s", msg); |
| 131 | } |
| 132 | |
| 133 | void PrintHelpForOEM() { |
| 134 | const char* msg = |
no outgoing calls
no test coverage detected