c# - Tessnet2 OCR returns only numbers -


i trying read text image using tessnet2 in c# application. code:

string valoare=""; lblocr.text = "";  bitmap image = new bitmap(@"c:\stamp\test.png"); tessnet2.tesseract ocr = new tessnet2.tesseract(); ocr.init(@"f:\manipulare pdf\bin(1)\release32\tessdata", "eng", false);  var rect = new system.drawing.rectangle(); list<tessnet2.word> result = ocr.doocr(image, rect);  int lc = tessnet2.tesseract.linecount(result); foreach (tessnet2.word word in result) { lblocr.text += word.text+" "+word.confidence+"<br/>"; } 

the resulted string contains numbers, picture contains letters , don't understand why.

thank you

try putting again language pack.

tessnet2 works language package 2 , up.


Comments

Popular posts from this blog

monitor web browser programmatically in Android? -

Shrink a YouTube video to responsive width -

wpf - PdfWriter.GetInstance throws System.NullReferenceException -