I'm using vs 2010 beta and followed the steps from
www.pixel-technology.com/freeware/tessnet2/ :
Quick Tessnet2 usage
1.Download binary here, add a reference of the assembly Tessnet2.dll
to your .NET project.
2.Download language data definition file here and put it in tessdata
directory. Tessdata directory and your exe must be in the same
directory.
3.Look at the Program.cs sample
I'm not really sure how the tessdata directory should be, but I'm
assuming that I have to create a folder named "tessdata" and in that
folder have an other folder "eng", (the language definition file I
downloaded). But where should this be? Feks when I'm developping in vs
should it be in the bin->debug->tessdata->eng?
First of all after searching the web I found that the app.config file
must be made. After that fix the program starts, but initilizing the
ocr functions makes the program exit without any warning or exception.
Stepping through the project I find the tessnet2.cpp file is missing
or not at it's original location (z:\dev\interne\cs\tesseract-ocr-svn
\dotnet\tessnet2.cpp). This happens when i try to ocr.Init... this
also happens when running lothars example (which also has an error on
line 40: "ocr.Init(cboLang.SelectedItem.ToString(), False)" where a
string is missing).
Am I missing some file(s)? Have I forgot to run some procedure?
I'm greatful for any reply that helps me find a solution to my
problems.
tessnet2.Tesseract.Init changed to have the ability to specify full
path.
Because tesseract append "tessdata" to the path, you must:
- set the path to lower directory, for example if your english
definition files are in c:\temp\tessdata then first argument is c:
\temp
- Your definition files must be in a directory named tessdata, you
can't have something like c:\temp\tessdata\eng or another name than
tessdata
Remi
On Jan 12, 8:56 pm, serpenthill <hans.kristian.ormb...@gmail.com>
wrote:
--
You received this message because you are subscribed to the Google Groups "tesseract-ocr" group.
To post to this group, send email to tesser...@googlegroups.com.
To unsubscribe from this group, send email to tesseract-oc...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/tesseract-ocr?hl=en.
My answer was incorrect.
The correct path is c:\temp\tessdata.
Check you have the 8 mandatory files
fra.DangAmbigs
fra.freq-dawg
fra.inttemp
fra.normproto
fra.pffmtable
fra.unicharset
fra.user-words
fra.word-dawg
Rémi