That was it! Moving tessdata folder from c:\windows to bin/debug directory has fixed the problem. Curiously it didn't work changing the order (moving the executable + dll) Thanks a lot.
On 12 feb, 16:09, Lothar <[email protected]> wrote: > Do you have the tesstdata directory with the language files as > subdirectory of the directory where your executeable the tessnet2.dll > are located? > > Regards > > Lothar > > www.dornieden.org > > On 12 Feb., 12:26, jtayamai <[email protected]> wrote: > > > Hi, > > > I'm experiencing a problem with the sample programme TesseractOCR that > > makes use of the tessnet2.dll C++ library for OCR recognition, under a > > Windows XP, Visual Studio 2005 and C# language environment. > > > I'm not able to see the programme run, since it fails as soon as it > > reachs the following line of code: > > > ocr.Init(cboLang.SelectedItem.ToString(), false); > > > The programme simply breaks, not throwing any kind of exception I can > > catch. > > > Browsing different threads of this Google Group, I've seen the format > > of the image or the path of the executable and tessdata could lead to > > problems. But I've paid special attention to this, and despite that, I > > get no satisfactory results. > > > In my case, cboLang.SelectedItem.ToString() equals "ENG" and the > > sample image I use is the provided "eurotext.tif". > > > On the other hand, in "c:\windows\tessdata" I've the following eight > > TesserAct files: eng.DambAmbigs, eng.freq-dawg, eng.inttemp, > > eng.normproto, eng.pffmtable, eng.unicharset, eng.user-words, eng.word- > > dawg. > > > I've also tried placing the executable TesseractConsole.exe > > (+tessnet2.dll) in different paths in the hard disk, "c:\windows\" > > among them, but nothing works. > > > I'm baffled about this and I don't know how to go on. Could you help > > me with this or give me some kind of useful hint, I'd be grateful. > > > 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 -~----------~----~----~----~------~----~------~--~---

