Re: Tesseract OCR 3.02 .NET (TessNET2) library crashes in sample programs in ocr.Init(null, "eng", false);

3,024 views
Skip to first unread message

zdenko podobny

unread,
Nov 30, 2012, 4:09:46 AM11/30/12
to tesser...@googlegroups.com


On Thu, Nov 29, 2012 at 10:04 PM, eljainc <elj...@sbcglobal.net> wrote:
Hello, I'm using the TessNet2 (.NET) library version 3.02 and I'm having an issue in running my first ever program with Tesseract OCR.

Can you be please more specific, what do you mean with "TessNet2 (.NET) library version 3.02" ?
Last version of Tessnet2 is 2.04.0, from 2 SEP 2009[1]...


  I have seen others with this problem, but have seen a bona fide
solution that addresses this:

In my statement:

ocr.Init(null, "eng", false);

When executing this, the program crashes. No exception error or anything.  I have seen refererences to downloading the 2.0 english library
Do you mean English language data file for tesseract? This one[2]? It for tesseract 3.00 and up (see description). For tesseract 2.0x you need 2.0x version of language data file[3].

 
(which is oddly enough called "unknown")
Where?
 
after unpacking the .gz file.     I have placed this file in the temp file location in the location where the TESSDATA_PREFIX system environment variable points. I have also put it in a predifined location, but that doesn't seem to work.

Does anyone have any other remedy for this problem?

Thanks
Mike

--
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

Message has been deleted

Quan Nguyen

unread,
Dec 2, 2012, 10:30:17 AM12/2/12
to tesser...@googlegroups.com
Check out the source of VietOCR.NET 2.0.5, which uses the same tessnet2 library.

http://sourceforge.net/projects/vietocr/files/vietocr.net/2.0.5/

zdenko podobny

unread,
Dec 2, 2012, 12:03:49 PM12/2/12
to tesser...@googlegroups.com
On Fri, Nov 30, 2012 at 10:10 PM, eljainc <elj...@sbcglobal.net> wrote:
My mistake, It was the 2.0.4 version.

I am still not sure where these English files should be. I have tried to put them into a temp location using

ocr.Init("o:\\ocrtemp\\","eng",false);
 
I have also tried to put them in the same folder as the executable (in the ..\bin\Debug folder) and still the program crashes.

If your TESSDATA_PREFIX is O:\ocrtemp\ (as show in your ocr.init), than language data should in directory O:\ocrtemp\tessdata\ If you run your application in console you should see error message if you have problem with language data location.
 
Are there any other troubleshooting steps to take? For now, I'm skipping the .NET code and running tesseract.exe command line program as a separate process.



On Thursday, November 29, 2012 3:04:44 PM UTC-6, eljainc wrote:
Hello, I'm using the TessNet2 (.NET) library version 3.02 and I'm having an issue in running my first ever program with Tesseract OCR.  I have seen others with this problem, but have seen a bona fide
solution that addresses this:

In my statement:

ocr.Init(null, "eng", false);

When executing this, the program crashes. No exception error or anything.  I have seen refererences to downloading the 2.0 english library (which is oddly enough called "unknown") after unpacking the .gz file.     I have placed this file in the temp file location in the location where the TESSDATA_PREFIX system environment variable points. I have also put it in a predifined location, but that doesn't seem to work.


Does anyone have any other remedy for this problem?

Thanks
Mike

--
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



--
Zdenko

Sven Pedersen

unread,
Dec 3, 2012, 11:57:55 AM12/3/12
to tesser...@googlegroups.com
It would be better to run the recent version of .NET bindings for Tesseract. Why do you want to use such old code?
-_Sven


On Fri, Nov 30, 2012 at 3:10 PM, eljainc <elj...@sbcglobal.net> wrote:
My mistake, It was the 2.0.4 version.

I am still not sure where these English files should be. I have tried to put them into a temp location using

ocr.Init("o:\\ocrtemp\\","eng",false);

I have also tried to put them in the same folder as the executable (in the ..\bin\Debug folder) and still the program crashes.

Are there any other troubleshooting steps to take? For now, I'm skipping the .NET code and running tesseract.exe command line program as a separate process.



On Thursday, November 29, 2012 3:04:44 PM UTC-6, eljainc wrote:
Hello, I'm using the TessNet2 (.NET) library version 3.02 and I'm having an issue in running my first ever program with Tesseract OCR.  I have seen others with this problem, but have seen a bona fide
solution that addresses this:

In my statement:

ocr.Init(null, "eng", false);

When executing this, the program crashes. No exception error or anything.  I have seen refererences to downloading the 2.0 english library (which is oddly enough called "unknown") after unpacking the .gz file.     I have placed this file in the temp file location in the location where the TESSDATA_PREFIX system environment variable points. I have also put it in a predifined location, but that doesn't seem to work.

Does anyone have any other remedy for this problem?

Thanks
Mike

--
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



--
``All that is gold does not glitter,
  not all those who wander are lost;
the old that is strong does not wither,
  deep roots are not reached by the frost.
From the ashes a fire shall be woken,
  a light from the shadows shall spring;
renewed shall be blade that was broken,
  the crownless again shall be king.”

Mike McWhinney

unread,
Dec 4, 2012, 11:20:49 AM12/4/12
to tesser...@googlegroups.com
Sven,

I didn't realize there was a newer version of the .NET library for TesserAct OCR. Thanks

I hope this would be compatible with Visual Studio 2005 and .NET 2.0 (although I do have .NET 3.5 SDK and extensions installed too)


Mike


From: Sven Pedersen <sven.p...@gmail.com>
To: "tesser...@googlegroups.com" <tesser...@googlegroups.com>
Sent: Mon, December 3, 2012 10:58:01 AM
Subject: Re: Tesseract OCR 3.02 .NET (TessNET2) library crashes in sample programs in ocr.Init(null, "eng", false);

Mike McWhinney

unread,
Dec 4, 2012, 11:18:55 AM12/4/12
to tesser...@googlegroups.com
Quan,

Thank you very much for this information. I will give it a try.

Mike McWhinney
elja, Inc.



From: Quan Nguyen <nguy...@gmail.com>
To: tesser...@googlegroups.com
Sent: Sun, December 2, 2012 9:30:22 AM

Subject: Re: Tesseract OCR 3.02 .NET (TessNET2) library crashes in sample programs in ocr.Init(null, "eng", false);

Check out the source of VietOCR.NET 2.0.5, which uses the same tessnet2 library.

http://sourceforge.net/ projects/vietocr/files/ vietocr.net/2.0.5/

--

Quan Nguyen

unread,
Dec 4, 2012, 10:23:42 PM12/4/12
to tesser...@googlegroups.com, Mike McWhinney
Also, VietOCR.NET 3.3x uses the .NET wrapper for Tesseract 3.0.1.

Mindy cheugn

unread,
May 29, 2015, 7:45:26 AM5/29/15
to tesser...@googlegroups.com, elj...@sbcglobal.net
This .net ocr library source is a nice share. My project is in c#, c# ocr examples are provided.

buyi wen

unread,
Sep 17, 2015, 11:23:30 PM9/17/15
to tesseract-ocr
if you like tesseract ocr, you may like this free online tesseract ocr tool
Reply all
Reply to author
Forward
0 new messages