我在 WinForms 中运行自动化应用程序并使用 Tesseract,当我在本地主机上运行时它运行良好,但是当我将 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。它对我有用。
关于winforms - 系统.DIINotFoundException : Failed to find library "leptonica-1.80.0.dll" for platform x86,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/66860480/