tesseract icon indicating copy to clipboard operation
tesseract copied to clipboard

Asp.NET Core 3.1.5 Failed to initialise tesseract engine - Tesseract 3.3.0

Open anpham293 opened this issue 4 years ago • 3 comments

Hi and thank you very much for your help.

I have tried everything to resolve a "Failed to initialise engine" error.

Here is my code:

`//code:

string testdatapath = System.IO.Path.Combine(_hostingEnvironment.WebRootPath, "tessdata");

            using (var ocrEngine = new TesseractEngine(testdatapath, "en", EngineMode.Default))

            {

                using (var img = Pix.LoadTiffFromMemory(fileBytes))

                {

                    using (var page = ocrEngine.Process(img))

                    {

                        ocrtext = page.GetText();

                    }

                }

            }`

I found a reply from charlesw/tesseract (author) in github: I've tried but It was usefuless for me (so sad):

image

This is my tessdata ABSOLUTELY path, I need your help, thank you.

image

anpham293 avatar Nov 14 '20 05:11 anpham293

Can you try the latest release (4.1.1)?

charlesw avatar Nov 15 '20 04:11 charlesw

Can you try the latest release (4.1.1)?

Thank you for reply, I cloned your github project and add to project (AspnetZero) but to much issue happen so I try to install NugetPackage, I only see 3.3.0 ver in Nuget, I will try again with cloned! Thank you


I've found 4.1.1 Nuget Package, thank you, I will try!

anpham293 avatar Nov 15 '20 08:11 anpham293

Can you try the latest release (4.1.1)?

Dear Bro, This Issue is still happened. Too bored!

image image

anpham293 avatar Nov 15 '20 08:11 anpham293