Asp.net core Asp.NET Core 3.1.5未能初始化tesseract引擎-tesseract 3.3.0
你好,非常感谢你的帮助 我已经尽我所能尝试解决“初始化引擎失败”错误 这是我的密码:Asp.net core Asp.NET Core 3.1.5未能初始化tesseract引擎-tesseract 3.3.0,asp.net-core,tesseract,Asp.net Core,Tesseract,你好,非常感谢你的帮助 我已经尽我所能尝试解决“初始化引擎失败”错误 这是我的密码: string testdatapath = System.IO.Path.Combine(_hostingEnvironment.WebRootPath, "tessdata"); using (var ocrEngine = new TesseractEngine(testdatapath, "en", EngineMode.Default))=
string testdatapath = System.IO.Path.Combine(_hostingEnvironment.WebRootPath, "tessdata");
using (var ocrEngine = new TesseractEngine(testdatapath, "en", EngineMode.Default))=> exception here
{
using (var img = Pix.LoadTiffFromMemory(fileBytes))
{
using (var page = ocrEngine.Process(img))
{
ocrtext = page.GetText();
}
}
}
我在github找到charlesw/tesseract(作者)的回复:我试过了,但没有用:
这是我的路径,我需要你的帮助,谢谢