1、If they are not already installed, you need the following libraries (Ubuntu 16.04/14.04):
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
2、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
3、install leptonica:
git clone https://github.com/DanBloomberg/leptonica
cd leptonica
autoreconf -vi
./autobuild
./configure
make
make install
4、install tesseract:
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
5、install the training tools:
make training
sudo make training-install
Now,You get the libtesseract.so and you can use it in your C++ programs.
If you have some question,welecome to comments!
本文详细介绍如何在Ubuntu系统上安装Tesseract OCR文字识别引擎及其训练工具,包括所需依赖库的安装步骤。
2万+

被折叠的 条评论
为什么被折叠?



