charlesw / tesseract

A .Net wrapper for tesseract-ocr
Apache License 2.0
2.28k stars 743 forks source link

System.Reflection.TargetInvocationException Error #564

Open rsbepvb opened 3 years ago

rsbepvb commented 3 years ago

I am having a problem on Visual Studio Mac 2019 on a Xamarin project. I am getting the following error.

System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.DllNotFoundException: Failed to find library "libleptonica-1.80.0.so" for platform x64. ....

The Dlls for x64 and x86 (leptonica-1.80.dll and tesseract41.dll) are in the proper folder in the project and being copied to the output directories.

I note that the sample console application works fine.

Anything thoughts would be appreciated.

crohit92 commented 2 years ago

I am also facing this issue

charlesw commented 2 years ago

Have you tried using the latest development branch? The changes introduced in #584 should resolve this though I can't test it.

donquijotedelamancha commented 2 years ago

Has it been confirmed if the latest changes fix this? and is there a timeline to make this available via nuget update?