Install the corresponding Lib (Install the Libs)
Reference: http://www.eefocus.com/winter1988/blog/13-03/292209_03d5b.html
sudo apt-get install autoconf automake libtoolsudo apt-get install libpng12-devsudo apt-get install Libjpeg62-devsudo apt- Get install Libtiff4-devsudo apt-get install Zlib1g-dev
Ensure that the following Lib is installed:
sudo apt-get install gcc sudo apt-get install g++ sudo apt-get install Automake
Install Leptonica:
$wget http://leptonica.googlecode.com/files/leptonica-1.69.tar.gz
$tar ZXVF leptonica-1.69.tar.gz
CD to its directory:
./configure && make && sudo make install
Install Tesseract:
$wget http://tesseract-ocr.googlecode.com/files/tesseract-ocr-3.02.02.tar.gz
$tar ZXVF tesseract-ocr-3.02.02.tar.gz
CD to its directory:
./configure && make && sudo make install
Required after Install sudo ldconfig
If you use the training package, you need to install the English bag
Set the directory where the Tessdata_prefix language pack is located (the language pack will be imported directly into the Tessdata directory after training under win)
Export tessdata_prefix=/usr/tesseract-ocr/
2. Training samples
Reference: http://blog.csdn.net/yasi_xi/article/details/8763385
http://blog.csdn.net/marvinhong/article/details/8459591
It is important to note that the last five packages are renamed