Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/asp.net-core/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Asp.net core Asp.NET Core 3.1.5未能初始化tesseract引擎-tesseract 3.3.0_Asp.net Core_Tesseract - Fatal编程技术网

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(作者)的回复:我试过了,但没有用:

这是我的
路径,我需要你的帮助,谢谢