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

!!!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

测试效果如下图

  • 5
    点赞
  • 10
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值