tesseract icon indicating copy to clipboard operation
tesseract copied to clipboard

Tesseract.dll on MVC on Docker / Service Fabric

Open rajeshkalpathi opened this issue 6 years ago • 1 comments

Has anyone successfully hosted an MVC application using the tesseract dll on Docker / Service Fabric?

I get the liblept177.dll (Tesseract v4.00) "Failed to find library" issue only in Docker. I could get it to work in the host machine by copying the dlls to C:\Windows\SysWOW64\inetsrv\x64. But if I map that folder in service fabric, it is not doing the trick. The dll files are present in C:\Windows\SysWOW64\inetsrv\x64 within the container, if i use the following command.

docker exec -ti add46d13b396 powershell

But somehow the iis on the microsoft/wcf image is unable to pick that dll in that folder.

Any ideas?

rajeshkalpathi avatar Jan 17 '19 12:01 rajeshkalpathi

Set the TesseractEnvironment.CustomSearchPath property to your apps content folder during startup to explicitly set where to look for the dlls.

On Thu, Jan 17, 2019 at 11:01 PM rajeshkalpathi [email protected] wrote:

Has anyone successfully hosted an MVC application using the tesseract dll on Docker / Service Fabric?

I get the liblept177.dll (Tesseract v4.00) "Failed to find library" issue only in Docker. I could get it to work in the host machine by copying the dlls to C:\Windows\SysWOW64\inetsrv\x64. But if I map that folder in service fabric, it is not doing the trick. The dll files are present in C:\Windows\SysWOW64\inetsrv\x64 within the container, if i use the following command.

docker exec -ti add46d13b396 powershell

But somehow the iis on the microsoft/wcf image is unable to pick that dll in that folder.

Any ideas?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/charlesw/tesseract/issues/461, or mute the thread https://github.com/notifications/unsubscribe-auth/AAPzyCsrvaiXaeK-S5juDMC6N9GUEFViks5vEGYmgaJpZM4aFDfH .

charlesw avatar Jan 17 '19 21:01 charlesw