Click here to Skip to main content
15,895,142 members
Please Sign up or sign in to vote.
3.00/5 (2 votes)
See more:
Hi Folks I try to use tessnet ORC for convert simple text image to text(string) but when i try to do any with I mean when i call any function of this my application closed automatically I am unable to use it please help me out


Thanks
Posted
Comments
Sergey Alexandrovich Kryukov 10-Jan-12 12:19pm    
Not enough information. All I can say: I tried it out and found it was working. I was not satisfied with the quality of this solution though. Also, I failed to make it working with any language rather then English. So, I don't see a way to help you unless you prepare and post a (shorted possible) code sample to manifest the problem.
--SA

Image is really simple here is image link http://i41.tinypic.com/2cynvvo.jpg[^]

and when I try this method my application closed

C#
  Bitmap bit = new Bitmap(ofd.OpenFile());
                tessnet2.Tesseract OCR = new tessnet2.Tesseract();
                // Application Close here if I remove this code so..
                OCR.Init("D:\tessdata", "eng", false);
                // Appliction close here!
                List<tessnet2.word> r1 = OCR.DoOCR(bit, Rectangle.Empty);
                foreach (tessnet2.Word res in r1)
                {
                    textBox1.Text += res.Confidence;
                }
</tessnet2.word>
 
Share this answer
 
Comments
El_Codero 29-Mar-12 9:10am    
For future posts, please improve your question or comment, that's not a solution.Regards
Hi,

don't used ocr from tessnet yet, but maybe you forgot the extension on initialzing ? would explain why it's crashing after Init() without really doing something.

I think tessdata is some "dictionary" of english words, I'm right?

C#
OCR.Init("D:\tessdata.JPG\.DAT\some kind of extension", "eng", false);


With Best Regards
 
Share this answer
 
v2
 
Share this answer
 
I was troubled by this problem too.
 
Share this answer
 
I uninstalled the tesseract-ocr 3.X, and cleared the registry and the environment path about it. After the system reboot,it's ok now.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900