tessedit_ocr_engine_mode is init-only[1] parameter (INT_INIT_MEMBER [2])
e.g. you can set it only during initialization of tesseract. Otherwise it
has no effect.
[1] https://github.com/tesseract-ocr/tesseract/wiki/ControlParams#init-only
[2]
You may notice tessedit_ocr_engine_mode being set to 3 which is of course
outside of the accepted range of 0-2, it does not work in the accepted
range either, printing 0 just the same. Also, when I call api->SetVariable(
"tessedit_char_whitelist", "0123456789abc ...
it works just fine.
On
Further Detail:
int value123221;
api->GetIntVariable("tessedit_ocr_engine_mode", );
std::cout << value123221 << std::endl;
std::cout << "Val1" << std::endl;
api->SetVariable("tessedit_ocr_engine_mode", "3");
3 matches
Mail list logo