Show us whole code, give more details about about your compiler etc.. Also run it from command line if there are any output (app should be created as console app - just for testing))
Zdenko On Tue, Apr 23, 2013 at 3:34 PM, Tom <[email protected]> wrote: > Hi, > I have used command line tesseract to check results of polish dictionary > and it was k - almost everything was correctly recognized. > But when i'm trying to do the same in some source - tesseract is working > like only with eng dictionary (same results). > Initialization like this: > > > *tesseract::TessBaseAPI *api = new tesseract::TessBaseAPI();* > *if (api->Init("./", "pol", tesseract::OEM_DEFAULT)) {* > * fprintf(stderr, "Could not initialize tesseract.\n");* > * return 1;* > *}* > and then just > > *char* outText = api->GetUTF8Text();* > > tessdata directory is with exe directory. > I think there is a problem with opening pol.traineddata but i have no idea > why and how to fix it. > I have also tried to set up TESSDATA_PREFIX to tessdata (both in > Tesseract-OCR source and project source) but with no results. > Now it is just deleted - so datapath from Init is working. > > What am i doing wrong? > How to use this dictionary? > > -- > -- > 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.

