dll not found exception in Linqpad when using Tesseract OCR software
I am trying to use Tesseract OCR Software in Linqpad. I made the following steps:
1) I installed Tesseract 3.02 by using the installer in
https://code.google.com/p/tesseract-ocr/downloads/detail?name=tesseract-ocr-setup-3.02.02.exe&
2) I added in Linqpad a reference to Tesseract through nuget, precisely the following package: a .Net wrapper for tesseract-ocr
3) I added in the PATH variable the path of Tesseract binary that contains also two native dll library
4) I installed Visual Studio x86 & x64 runtime as suggested in
https://github.com/charlesw/tesseract/wiki/Error-2
However, when I try to use tesseract in Linqpad I get the following error:
DllNotFoundException: Failed to find library "liblept168.dll" for platform x86
I suppose that the Problem is related to how use native dll in Linqpad.
How can I fix this Problem?
1) I installed Tesseract 3.02 by using the installer in
https://code.google.com/p/tesseract-ocr/downloads/detail?name=tesseract-ocr-setup-3.02.02.exe&
2) I added in Linqpad a reference to Tesseract through nuget, precisely the following package: a .Net wrapper for tesseract-ocr
3) I added in the PATH variable the path of Tesseract binary that contains also two native dll library
4) I installed Visual Studio x86 & x64 runtime as suggested in
https://github.com/charlesw/tesseract/wiki/Error-2
However, when I try to use tesseract in Linqpad I get the following error:
DllNotFoundException: Failed to find library "liblept168.dll" for platform x86
I suppose that the Problem is related to how use native dll in Linqpad.
How can I fix this Problem?
Comments
The only way right now is to put the DLL in the same folder as LINQPad.exe. If you've installed LINQPad to c:\program files, you might find it easier to make a copy of the whole LINQPad folder to somewhere that doesn't require administrative elevation, and this will also give you a separate instance for when you need this native DLL.
Failed to find library "liblept1753.dll" for platform x86
I've logged an issue here:
https://github.com/charlesw/tesseract/issues/484
Hello, for those who would like to use Tesseract Nuget with LINQpad I've added a workaround to the github issue as well as a stackoverflow question. Hope it helps!
https://stackoverflow.com/questions/34130764/dll-not-found-exception-in-linqpad-when-using-tesseract-ocr-software/65375499#65375499