问题描述
我正在 WinForms 中运行一个自动化应用程序并使用 Tesseract,当我在 localhost 上运行时它运行良好,但是当我将 bin
文件夹发布或导出到另一台计算机时,它显示了这个错误:
System.DIINotFoundException: Failed to find library "leptonica-1.80.0.dll" for platform x86.
in InteropDotNet.LibraryLoader.LoadLibrary(String fileName,String platformName)
in
Interop Runtimelmplementer.LeptonicaApiSignaturesInstance.Leptonica ApiSignaturesImplementation..ctor(LibraryLoader loader)
- 我已经尝试将其移至
myproject\packages\Tesseract.4.1.1\lib\net45\leptonika-1.80.0.dll.
未成功 - 已检查 .NET 版本
- 我已经尝试在项目的 bin 文件夹中安装 tesseract 包
解决方法
安装 vc_redist.x86。它对我有用。