ubuntu16.04 安装tesseract4.0

参考地址:https://github.com/tesseract-ocr/tesseract

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

https://launchpad.net/~alex-p/+archive/ubuntu/tesseract-ocr?field.series_filter=xenial

安装

https://github.com/tesseract-ocr/tesseract/wiki/Compiling-%E2%80%93-GitInstallation#installing-with-autoconf-tools

sudo apt-get install software-properties-common

sudo add-apt-repository ppa:alex-p/tesseract-ocr

sudo apt-get update

sudo apt-get install tesseract-ocr

 依赖:

sudo apt-get install g++  # or clang++ (presumably)

sudo apt-get install autoconf automake libtool

sudo apt-get install pkg-config

sudo apt-get install libpng-dev

sudo apt-get install libjpeg8-dev

sudo apt-get install libtiff5-dev

apt-get install zlib1g-dev

training 依赖:

sudo apt-get install libicu-dev

sudo apt-get install libpango1.0-dev

sudo apt-get install libcairo2-dev

leptonica    http://www.leptonica.org/    ?安装tesseract4.0需要从leptonica源码编译? https://github.com/danbloomberg/leptonica

sudo apt-get install libleptonica-dev     # ????

sudo apt install cmake

使用源码

git clone https://github.com/danbloomberg/leptonica

cd leptonica

mkdir build

cd build

cmake ..

make

 

安装:

 git clone https://github.com/tesseract-ocr/tesseract.git

cd tesseract

./autogen.sh

./configure

make

make install

ldconfig

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值