charlesw / tesseract

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

Failed to find library "leptonica-1.82.0.dll" for platform x64. #649

Open rsherman726 opened 11 months ago

rsherman726 commented 11 months ago

I have the asp.net demo with Tesseract 5.2 and I get: Failed to find library "leptonica-1.82.0.dll" for platform x64. And I can't get past that error. There is no Leptonica dll in the bin Directory. Tesseract is there but no Leptonica. I have Visual Studio 2022. I have the current VC Redist x86 & x64 installed and re-installed and still the same error.

ronaldofas commented 11 months ago

I'm having the same problem

wxharry commented 8 months ago

The following directory structure fix my problem: Debug │ ├── x64 │ ├── leptonica-1.82.0.dll │ └── tesseract50.dll │ └── Tesseract.dll

PhillD2024 commented 6 months ago

Did you have to MANUALLY copy the leptonica-1.82.0.dll and tesseract50.dll to the x64 folder to solve this problem? I am having the same issues as you but I am trying to automate the install of the files through the visual studio setup/installer project. unfortunately, the leptonica-1.82.0.dll and tesseract50.dll are not seen as a dependency in the project because they are copied when running the project in debug mode from the solution packages folder to the bin folder by Visual Studio. All attempts by our developers to solve this problem have failed.

ransherraj commented 4 months ago

Hi, I am getting this error. If any idea, please suggest. System.Reflection.TargetInvocationException: 'Exception has been thrown by the target of an invocation.' DllNotFoundException: Failed to find library "leptonica-1.82.0.dll" for platform x86.

carter-musick commented 4 months ago

I was having this issue running on a VM with Windows Server and installing the VC Redist was what I needed