Running tessnet2.dll in an ASP server

73 views
Skip to first unread message

akshay

unread,
Mar 28, 2009, 4:29:14 AM3/28/09
to tesseract-ocr
Hello,

I am trying to load tessnet2.dll onto an ASP server and running into
some problems.

The .dll loads, but the server resets on Init("eng", false").

The following code:
tessnet2.Tesseract ocr_e = new tessnet2.Tesseract
();
ocr_e.Init("eng", false).ToString( ); //dies here
Produces: The connection to the server was reset while the page was
loading.

In the Visual Studio project:
-There is a "tessdata" directory with eng.unicharset, eng.normproto,
etc...(8 files) - These are copied as "Content"
-The .dll is in the same directory as the tessdata folder. FYI...This
configuration works on a local windows C# application.

I've also tried loading the tessdata as Embedded Resources...
Have people got tessnet working on a server before? Could it be
because the tessdata directory is not being loaded properly? I tried
to package up tessnet2.dll and tessdata into a single DLL but was
unsuccessful.

Any help would be great - Thanks!
-Akshay


hyaki

unread,
Apr 20, 2009, 7:24:01 AM4/20/09
to tesseract-ocr
Hello,
I used to have the same problem.
Try copy the tessdata folder to: %Windows\Microsoft.NET\Framework
\2.XXX.
If that doesnt work try to copy the tessdata folder to Windows
\System32\inetsrv

In my case, it pass the Init Function. In my local IIS the tessnet2
working well,
but when I deploy to Production Server, it doesnt work. it was
terminated during call the DoOCR function.
I'm still waiting reply to my problem. [http://groups.google.com/group/
tesseract-ocr/browse_thread/thread/13425bc12c7de3d3#]

Let me know if your problem solved.

Thanks
Reply all
Reply to author
Forward
0 new messages