tesseract4.0:ubuntu16.04 +x64+leptonica1.74.4源码安装(ViewerDebugging)工具记录

本文详细记录了在 Ubuntu 16.04 上通过源码安装 Tesseract 4.0 和 Leptonica 1.74.4 的过程,并重点介绍了 ViewerDebugging 工具的使用。在安装过程中提到了关键步骤,如正确复制 jar 包,以及如何显示字符和进行缩放操作。文章还提供了多个参考资料链接,帮助读者解决可能出现的问题。
摘要由CSDN通过智能技术生成

!!!tesseract官网有提供相关视频!!!

https://www.youtube.com/watch?v=vOdnt2h1U8U

https://www.youtube.com/watch?v=WZLJucXZy-g


!!!官网编译教程!!!建议完整看完后再作操作。

https://github.com/tesseract-ocr/tesseract/wiki/Compiling#linux

1)必要流程

If they are not already installed, you need the following libraries (Ubuntu 16.04/14.04)

sudo apt-get install g++ # or clang++ (presumably)
sudo apt-get install autoconf automake libtool
sudo apt-get install autoconf-archive
sudo apt-get install pkg-config
sudo apt-get install libpng12-dev
sudo apt-get install libjpeg8-dev
sudo apt-get install libtiff5-dev
sudo apt-get install zlib1g-dev


if you plan to install the training tools, you also need the following libraries:

sudo apt-get install libicu-dev
sudo apt-get install libpango1.0-dev
sudo apt-get install libcairo2-dev

2)leptonica编译(有2种方式,一种是github源码,一种是压缩包,我使用github源码)
sudo apt install git
git clone https://github.com/DanBloomberg/leptonica 
cd leptonica
autoreconf -vi
./autobuild
./configure
make 
sudo make install
3)安装tesseract

cd
git clone --depth 1 https://github.com/tesseract-ocr/tesseract.git
cd tesseract
./autogen.sh
./configure --enable-debug
LDFLAGS="-L/usr/local/lib" CFLAGS="-I/usr/local/include" make
sudo make install
sudo ldconfig
tesseract -v

测试效果如下图

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值