Click here to Skip to main content
15,887,821 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I used the tessnet2 ocr and It is working fine , but the problem I cannot DoOCR more then one time ,
I want to split my image to many rectangles then process the ocr on each rectangle .
But I cannot call the
C#
Bitmap bmp = new Bitmap(@"scantest.bmp");
           pictureBox1.Image = bmp;
           tessnet2.Tesseract ocr = new tessnet2.Tesseract();
           ocr.Init(null, "eng", false);
          // ocr.SetVariable("tessedit_char_whitelist", "0123456789qwertyuiopasdfghjklzxcvbnm");
           ocr.ProgressEvent += new tessnet2.Tesseract.ProgressHandler(ocr_ProgressEvent);
           ocr.OcrDone = new tessnet2.Tesseract.OcrDoneHandler(Done);
           Rectangle rec1=new Rectangle(0,200,1000,800);
        Rectangle rec2 = new Rectangle(0, 0, 1000, 200);
           ocr.DoOCR(bmp, rec1);
        //   ocr.OcrDone = new tessnet2.Tesseract.OcrDoneHandler(Done);
          ocr.DoOCR(bmp, rec2);


are there any suggestions ?
Posted

Hi, could you please send any simple tessnet2. I have wasted much more time but unable to do ocr
 
Share this answer
 
Hi, could you please send any simple tessnet2. I have wasted much more time but unable to do ocr. Every time I get a new error
 
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