Remember to include "/." at the end of TESSDATA_PREFIX, e.g. TESSDATA_PREFIX=/home/ubuntu/mytess/. (where a tessdata folder exists) >From my experience it fails without the "/."
Patrick On Fri, Apr 5, 2013 at 6:07 PM, zdenko podobny <[email protected]> wrote: > I did not test the latest code but in past I have these experiences: > > - if TESSDATA_PREFIX environment variable is specified than init path > was ignored > - if TESSDATA_PREFIX is build-in (default for autotools compilation) > than init path was ignored > > The easy workaround for that problem: set TESSDATA_PREFIX environment > variable (this information has highest preference in tesseract-ocr) to > desired folder before calling init ;-) > > Zdenko > > > On Fri, Apr 5, 2013 at 2:23 PM, Quan Nguyen <[email protected]> wrote: > >> The first parameter to Init is the path to tessdata folder; the second >> indicates the language. >> >> >> On Thursday, April 4, 2013 9:48:31 AM UTC-5, Renato Forti wrote: >>> >>> >>> Hi all, >>> >>> My language file is in: >>> >>> /tesseract/ocr_default_engine/**tessdata >>> >>> for sample: >>> tesseract/ocr_default_engine/**tessdata$ ls >>> eng.traineddata por.traineddata >>> >>> I want pass it to Init! Have Any way? >>> >>> I have this: >>> >>> >>> if (myOCR->Init(NULL, “por”)) >>> >>> >>> I want something like this: >>> >>> >>> if (myOCR->Init(NULL, >>> “/tesseract/ocr_default_**engine/tessdata/por.**traineddata”)) >>> >>> >>> >>> Have Any way? >>> >>> >>> Thanks >>> >>> -- >> -- >> You received this message because you are subscribed to the Google >> Groups "tesseract-ocr" group. >> To post to this group, send email to [email protected] >> To unsubscribe from this group, send email to >> [email protected] >> For more options, visit this group at >> http://groups.google.com/group/tesseract-ocr?hl=en >> >> --- >> 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]. >> For more options, visit https://groups.google.com/groups/opt_out. >> >> >> > > -- > -- > You received this message because you are subscribed to the Google > Groups "tesseract-ocr" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/tesseract-ocr?hl=en > > --- > 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]. > For more options, visit https://groups.google.com/groups/opt_out. > > > -- Patrick Questembert, *ScanBizCards* +1-917-250-4177 | www.scanbizcards.com twitter.com/ScanBizCards | www.facebook.com/ScanBizCards Just released: Power Contacts - http://itunes.apple.com/us/app/power-contacts/id476986356?mt=8 -- -- You received this message because you are subscribed to the Google Groups "tesseract-ocr" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/tesseract-ocr?hl=en --- 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]. For more options, visit https://groups.google.com/groups/opt_out.

