Hi,

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 10 jan, 11:29, serpenthill <[email protected]> wrote:
> Hi,
> i recently started a project that requires ocr and I found tessnet to
> meet my requirements. The problem is that I just can't seem to make it
> work.
>
> I'm using vs 2010 beta and followed the steps 
> fromwww.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.
-- 
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.


Reply via email to