Skip to content

Commit

Permalink
Change tesseract parameter -oem to --oem
Browse files Browse the repository at this point in the history
It was introduced recently in commit f24ef67, so there is no need
to support the old variant for compatibility reasons.

Signed-off-by: Stefan Weil <[email protected]>
  • Loading branch information
stweil committed Nov 30, 2016
1 parent 23e420a commit d2f9264
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api/tesseractmain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ void PrintHelpMessage(const char* program) {
" -c VAR=VALUE Set value for config variables.\n"
" Multiple -c arguments are allowed.\n"
" -psm NUM Specify page segmentation mode.\n"
" -oem NUM Specify OCR Engine mode.\n"
" --oem NUM Specify OCR Engine mode.\n"
"NOTE: These options must occur before any configfile.\n";

printf("\n%s\n", ocr_options);
Expand Down Expand Up @@ -277,7 +277,7 @@ void ParseArgs(const int argc, char** argv, const char** lang,
} else if (strcmp(argv[i], "-psm") == 0 && i + 1 < argc) {
*pagesegmode = static_cast<tesseract::PageSegMode>(atoi(argv[i + 1]));
++i;
} else if (strcmp(argv[i], "-oem") == 0 && i + 1 < argc) {
} else if (strcmp(argv[i], "--oem") == 0 && i + 1 < argc) {
*enginemode = static_cast<tesseract::OcrEngineMode>(atoi(argv[i + 1]));
++i;
} else if (strcmp(argv[i], "--print-parameters") == 0) {
Expand Down

0 comments on commit d2f9264

Please sign in to comment.