(来源:askdev.ru)
(来源:askdev.ru)
结果,我有 298 和 288。
tessnet2.Tesseract ocr = new tessnet2.Tesseract();
ocr.SetVariable("tessedit_char_whitelist", "$,0123456789");
ocr.Init("C:\\tessdata\\", "eng", false);
Bitmap tmp = wbbmp.Clone(rectM[5], System.Drawing.Imaging.PixelFormat.Format24bppRgb);
List<tessnet2.Word> n = ocr.DoOCR(tmp, new Rectangle(0,0,75,21));