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] https://github.com/tesseract-ocr/tesseract/blob/41478fd5a1f713f56ec51134d2598700b7f1463c/ccmain/tesseractclass.cpp#L79 Zdenko On Thu, Sep 3, 2015 at 11:06 PM, <[email protected]> wrote: > 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 Thursday, September 3, 2015 at 1:56:43 PM UTC-7, [email protected] > wrote: >> >> Further Detail: >> >> int value123221; >> >> api->GetIntVariable("tessedit_ocr_engine_mode", &value123221); >> >> std::cout << value123221 << std::endl; >> >> std::cout << "Val1" << std::endl; >> >> api->SetVariable("tessedit_ocr_engine_mode", "3"); >> >> api->GetIntVariable("tessedit_ocr_engine_mode", &value123221); >> >> std::cout << value123221<< std::endl; >> >> std::cout << "Val2" << std::endl; >> >> >> The output from this is: >> >> >> *0* >> >> *Val1* >> >> *0* >> >> *Val2* >> >> >> *This means that the setvariable function does not appear to be working >> for me ... no idea why though.* >> >> On Thursday, September 3, 2015 at 12:04:29 PM UTC-7, [email protected] >> wrote: >>> >>> api->SetVariable("tessedit_ocr_engine_mode", "0"); gives the same exact >>> results as api->SetVariable("tessedit_ocr_engine_mode", "1"); >>> >>> >>> are there additional steps that need to be taken to set up cube mode? I >>> am just using it on english text so I haven't done any training of my own >>> for either mode. >>> >> -- > You received this message because you are subscribed to the Google Groups > "tesseract-ocr" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/tesseract-ocr. > To view this discussion on the web visit > https://groups.google.com/d/msgid/tesseract-ocr/585a4d35-d485-497d-9b3e-ef56cf831961%40googlegroups.com > <https://groups.google.com/d/msgid/tesseract-ocr/585a4d35-d485-497d-9b3e-ef56cf831961%40googlegroups.com?utm_medium=email&utm_source=footer> > . > > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "tesseract-ocr" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/tesseract-ocr. To view this discussion on the web visit https://groups.google.com/d/msgid/tesseract-ocr/CAJbzG8yB6mT4qvK-vy99jBOdYH2MzQcqyjD3TPrjYJ%3DJ8H0Rug%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.

