关于tesseract:CentOS下安装tesseract5

12次阅读

共计 658 个字符,预计需要花费 2 分钟才能阅读完成。

# 下载源码
git clone https://github.com/tesseract-ocr/tesseract.git

cd tesseract

./autogen.sh
# 可能呈现谬误: Unable to find a valid copy of libtoolize or glibtoolize in your PATH!
# 解决方案: 
## yum install automake -y 
## yum install libtool -y

./configure
# ./configure 可能呈现以下问题, 附上解决方案
# 问题 1  configure: error: Your compiler does not have the necessary C++17 support! Cannot proceed.
# 解决方案: https://segmentfault.com/a/1190000041832780

# 问题 2  configure: error: Leptonica 1.74 or higher is required. Try to install libleptonica-dev package.
# 解决方案: https://segmentfault.com/a/1190000041833110

make && make install
ldconfig

官网阐明文档: https://tesseract-ocr.github.io/tessdoc/Compiling.html
其余教程链接:
Linux 环境如何反对应用 tess4j 进行 ORC
linux (centos7) 上装 Tesseract-OCR 最新版本 (5.0)

正文完
 0