* We have 2 possible sources of pagesegmode: a config file and * the command line. For backwards compatibility reasons, the * default in tesseract is tesseract::PSM_SINGLE_BLOCK, but the * default for this program is tesseract::PSM_AUTO. We will let * the config file take priority, so the command-line default * can take priority over the tesseract default, so we use the * value from the comm
| 227 | * but that doesn't work. |
| 228 | */ |
| 229 | void FixPageSegMode(tesseract::TessBaseAPI* api, |
| 230 | tesseract::PageSegMode pagesegmode) { |
| 231 | if (api->GetPageSegMode() == tesseract::PSM_SINGLE_BLOCK) |
| 232 | api->SetPageSegMode(pagesegmode); |
| 233 | } |
| 234 | |
| 235 | // NOTE: arg_i is used here to avoid ugly *i so many times in this function |
| 236 | void ParseArgs(const int argc, char** argv, const char** lang, |
no test coverage detected