Hi, Use Process Monitor http://technet.microsoft.com/en-us/sysinternals/bb896645.aspx To see what files are looked for. This will give you the file your app try to open.
Remi On Jan 15, 9:13 pm, scMad <[email protected]> wrote: > Rémi, > Thanks for responding. I put a copy of the tessdata folder with 8 eng > language files in both my bin\debug and bin\release folders. I copy > them with the executable. Therefore I was sending Application.Startup > + "\tessdata" > That would send the string "C:\Users\UserDocuments\Visual Studio > 2008\Project\Project\Project\bin\debug\tessdata". > I have moved the folder all about, I even moved it to C:\dev\tessdata > and tried that way, I receive the same error every time (obviously > with different paths.) > > Dim ocr As New tessnet2.Tesseract > ocr.Init(Application.StartupPath & "\tessdata", "eng", > False) > results in > Dim ocr As New tessnet2.Tesseract > ocr.Init("C:\Users\User\Documents\Visual Studio > 2008\Projects\Project\Project\bin\Debug\tessdata", "eng", False) > > and with either one I receive the error > Unable to load unicharset file C:/Users/User/Documents/Visual Studio > 2008/Projects/Project/Project/bin/Debug/tessdata/\eng.unicharset > > The absolute path to eng.unicharset (and all the other eng.language > files) is C:\Users\User\Documents\Visual Studio 2008\Projects\Project > \Project\bin\Debug\tessdata\eng.unicharset - so the path is correct. > > I assumed after looking at tessnet2.cpp that it was adding an escaped > backslash which gave it the tessdata/\eng.unicharset and that was why > it was failing. That's why I changed the SetVariable option in > tessnet::tesseract:init > I changed it to > SetVariable("m_data_sub_dir", "\\"); > > SetVariable("m_data_sub_dir", "tessdata/"); > > so that I could send the path C:\Users\User\Documents\Visual Studio > 2008\Projects\Project\Project\bin\Debug to ocr.Init, this did what I > expected and corrected the path (at least in the error message), > however then I receive the error message: > Unable to load unicharset file C:/Users/User/Documents/Visual Studio > 2008/Projects/Project/Project/bin/Debug/tessdata/eng.unicharset > > which leaves me at a loss "C:/Users/User/Documents/Visual Studio 2008/ > Projects/Project/Project/bin/Debug/tessdata/eng.unicharset" is > absolutely the correct path, the file exists there, and is readable by > anyone. I don't know where to go from here. > > On Jan 15, 8:36 am, rthomas <[email protected]> wrote: > > > Hi, > > > I use this path > > Z:\dev\cs\tessdata > > and it work great. > > > / is use in Unix world, tesseract is "unix" path mode > > \ is use in Windows world. > > Use \ it's ok > > > You mus have all the 8 files present in tessdata directory > > fra.DangAmbigs > > fra.freq-dawg > > fra.inttemp > > fra.normproto > > fra.pffmtable > > fra.unicharset > > fra.user-words > > fra.word-dawg > > > Rémi > > > On Jan 14, 11:21 pm, scMad <[email protected]> wrote: > > > > I run windows 7 x64, and using tesseract and tessnet2 (I am using the > > > 32bit version tessnet2_32, as well as having the compiler set to > > > target x86). > > > > I receive an error on the follow: > > > ocr.Init(Application.StartupPath & "/tessdata", "ENG", False) > > > I've appended the tessdata because: > > > Unable to load unicharset file C:/Users/UserDocuments/Visual Studio > > > 2008/Projects/Project/Project/bin/Debug/tessdata/\ENG.unicharset > > > is the error that I receive > > > ocr.Init(Application.StartupPath & "\tessdata", "ENG", False) > > > results in > > > Unable to load unicharset file C:/Users/UserDocuments/Visual Studio > > > 2008/Projects/Project/Project/bin/Debug/\ENG.unicharset > > > > I have eng.unicharset in debug/tessdata > > > It looks like it's trying to append the wrong kind of slash and is > > > messing itself up. Any ideas?
-- 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.

