系统:Windows7Pro
我试图在python中运行ocrmypdf,但收到错误:
raise MissingDependencyError(
ocrmypdf.exceptions.MissingDependencyError:
---------------------------------------------------------------------
This error normally occurs when ocrmypdf can't find the Leptonica
library, which is usually installed with Tesseract OCR. It could be that
Tesseract is not installed properly, we can't find the installation
on your system PATH environment variable.
The library we are looking for is usually called:
liblept-5.dll (Windows)
liblept*.dylib (macOS)
liblept*.so (Linux/BSD)
Please review our installation procedures to find a solution:
https://ocrmypdf.readthedocs.io/en/latest/installation.html
我决定安装tesseract
,为此我需要从这个库构建文件。我正在使用Cmake来实现这一点,已经为Tesseract构建了Leptonica和TiFF
但当我试图在Cmake中“配置”tesseract时,我收到了以下错误:
CMake Error at training/CMakeLists.txt:40 (file):
file DOWNLOAD HASH mismatch
for file: [tesseract-3.05.01/build_win64/training/icu/icu64.zip]
expected hash: [480c72491576c048de]
actual hash: [db340097e390be978d]
status: [0;"No error"]
我在tesseract\training\CMakeLists.txt
这一行中也做了更改:
"http://download.icu-project.org/files/icu4c/56.1/icu4c-56_1-Win${ARCH_DIR_NAME}-msvc10.zip"
到:https://github.com/unicode-org/icu/releases/download/release-68-2/icu4c-68_2-Win64-MSVC2019.zip
,因为此zip文件存在问题
有什么办法解决吗?谢谢
这对将来的人来说可能很重要:
要解决此问题,您不需要自己编译这些库,我在这里安装tesseract时发现
liblept-5.dll
:https://github.com/UB-Mannheim/tesseract/wiki
使用最新安装程序
相关问题 更多 >
编程相关推荐