小编Gui*_*tti的帖子

System.DIINotFoundException:无法找到 x86 平台的库“leptonica-1.80.0.dll”

我正在 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)
Run Code Online (Sandbox Code Playgroud)
  1. 我已经尝试将其移动到但myproject\packages\Tesseract.4.1.1\lib\net45\leptonika-1.80.0.dll.不成功
  2. 已检查 .NET 版本
  3. 我已经尝试在项目的 bin 文件夹中安装 tesseract 包

selenium tesseract winforms selenium-chromedriver leptonica

3
推荐指数
1
解决办法
3451
查看次数