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. For more options, visit https://groups.google.com/d/optout.

