tesseract linux 安装与编译

安装Leptonica依赖包

下载Leptonica最新版本
tar xvf leptonica* //解压
cd leptonica
./configure
make
sudo make install

安装以下依赖项

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

如果打算安装训练工具

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

安装tesseract

cd tesseract
./autogen.sh
./configure --prefix=$HOME/local/
make
sudo make install

make training
sudo make training-install

你可能感兴趣的:(tesseract linux 安装与编译)