tesseract icon indicating copy to clipboard operation
tesseract copied to clipboard

Failed to find library \"liblept1753.so\" for platform x64.

Open pras120687 opened this issue 4 years ago • 3 comments

I am using below code for getting text from image

using System; using System.Drawing; using Tesseract;

namespace MalleshwariProjects { class Program { static void Main(string[] args) { Console.WriteLine("Hello World!"); var engine = new TesseractEngine("./tessdata", "eng", EngineMode.Default); using (var pix = Pix.LoadFromFile(@"/Users/prkotagi/Desktop/Test.bmp")) { Page page = engine.Process(pix, PageSegMode.Auto); string result = page.GetText(); Console.WriteLine(result);

        }

    }
}

}

I am using .net 5 framework with Tesseract 3.02 and Tessdata files 3.0.2 and visual studio is 2019 on mac os.

pras120687 avatar Nov 11 '20 11:11 pras120687

I have the same problem with: Failed to find library "libleptonica-1.80.0.so" for platform x64. Please mark me if anyone resolve this issue

daxter44 avatar Nov 16 '20 14:11 daxter44

I am also having same problem while installing in IIS. System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.DllNotFoundException: Failed to find library "leptonica-1.80.0.dll" for platform x64.

While working locally it works.

ajeyaprakash148 avatar Nov 27 '20 12:11 ajeyaprakash148

I had the same issue and after a lot of pulling hairs, and searching forums, I found out that there where created two folders (x86, x64) in my bin directory, that I didn't saw. I do not use publish function, I'm uploading everything by ftp, so... there it is. If anyone has the same issue again.

Ranentil avatar Mar 12 '21 15:03 Ranentil