我正在尝试按照这些步骤使用OCR:http://tesseract.patagames.com/help/html/baa0aa10-7805-4ae6-b6e9-9df777c4678c.htm
我遇到了一个未处理的异常,提示:
在 Patagames.Ocr.dll 中发生了类型为 'System.Exception' 的未处理异常。
额外信息:无法加载 DLL 'tesseract.dll':指定的模块无法找到。请确保将其复制到应用程序文件夹中。或者,您可以在TessBaseAPICreate方法中使用specificPath参数指定完整路径到 tesseract.dll 文件。
因此,我按照一些说明指定了完整路径,但仍然无法工作。
OcrApi.PathToEngine = @"d:\MyApp\tesseract.dll";
using (var api = OcrApi.Create())
{
api.Init();
}
有没有其他方法可以让这个工作?