tesseract
tesseract copied to clipboard
Failed to find library "leptonica-1.82.0.dll" for platform x64.
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.
I'm having the same problem
The following directory structure fix my problem: Debug │ ├── x64 │ ├── leptonica-1.82.0.dll │ └── tesseract50.dll │ └── Tesseract.dll
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.
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.
I was having this issue running on a VM with Windows Server and installing the VC Redist was what I needed
... installing the VC Redist was what I needed
Completely unintuitive at first, given the error message, but this worked for me, too.
Directory structure as given by wxharry: [Main EXE Dir] │ ├── x64 │ ├── leptonica-1.82.0.dll │ └── tesseract50.dll │ └── Tesseract.dll
Release version was working on my debugging machine like this, but not on the server. Installed Visual C++ Redistributable 2015-2022 x64 there and it worked perfectly.