Tessnet2 OCR或许多矩形 [英] Tessnet2 OCR or Many rectangles

查看:76
本文介绍了Tessnet2 OCR或许多矩形的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用了tessnet2 ocr并且工作正常,但问题是我不能DoOCR多一次,

我想将我的图像分割成许多矩形然后处理每个矩形上的ocr。

但我无法调用

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

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 ?

推荐答案

你好,请你发送任何简单的tessnet2。我浪费了更多的时间,但无法做到ocr
Hi, could you please send any simple tessnet2. I have wasted much more time but unable to do ocr


您好,请发送任何简单的tessnet2。我浪费了更多的时间,但无法做到ocr。每次我收到新错误
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


这篇关于Tessnet2 OCR或许多矩形的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆