MCPcopy Create free account
hub / github.com/creatale/node-dv / PrintHelpMessage

Function PrintHelpMessage

deps/tesseract/api/tesseractmain.cpp:144–173  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

142}
143
144void PrintHelpMessage(const char* program) {
145 PrintUsage(program);
146
147 const char* ocr_options =
148 "OCR options:\n"
149 " --tessdata-dir PATH Specify the location of tessdata path.\n"
150 " --user-words PATH Specify the location of user words file.\n"
151 " --user-patterns PATH Specify the location of user patterns file.\n"
152 " -l LANG[+LANG] Specify language(s) used for OCR.\n"
153 " -c VAR=VALUE Set value for config variables.\n"
154 " Multiple -c arguments are allowed.\n"
155 " --psm NUM Specify page segmentation mode.\n"
156 " --oem NUM Specify OCR Engine mode.\n"
157 "NOTE: These options must occur before any configfile.\n";
158
159 printf("\n%s\n", ocr_options);
160 PrintHelpForPSM();
161 PrintHelpForOEM();
162
163 const char* single_options =
164 "Single options:\n"
165 " -h, --help Show this help message.\n"
166 " --help-psm Show page segmentation modes.\n"
167 " --help-oem Show OCR Engine modes.\n"
168 " -v, --version Show version information.\n"
169 " --list-langs List available languages for tesseract engine.\n"
170 " --print-parameters Print tesseract parameters to stdout.\n";
171
172 printf("\n%s", single_options);
173}
174
175void SetVariablesFromCLArgs(tesseract::TessBaseAPI* api, int argc,
176 char** argv) {

Callers 1

ParseArgsFunction · 0.85

Calls 3

PrintUsageFunction · 0.85
PrintHelpForPSMFunction · 0.85
PrintHelpForOEMFunction · 0.85

Tested by

no test coverage detected