我在我的项目中引用了 tessnet lib 并调用了以下代码..但它存在,但在 Init 调用中没有任何异常
var fd = new OpenFileDialog();
if (fd.ShowDialog() == DialogResult.OK)
{
var fileP = fd.FileName;
var bmp = new Bitmap(fileP);
var tessocr = new tessnet2.Tesseract();
tessocr.Init(@"C:\Downloads\TesseractApp\TessApp\bin\Debug\", "eng", false);
tessocr.GetThresholdedImage(bmp, Rectangle.Empty).Save("c:\\Downloads\\" + Guid.NewGuid() + ".bmp");
}
从这里获取项目http://ge.tt/5AqxgSN/v/0?c