Install Tesseract OCR libs from sources in Centos Print

  • 0

Download Leptonica and Teseract sources:

wget http://www.leptonica.org/source/leptonica-1.69.tar.gz
wget https://tesseract-ocr.googlecode.com/files/tesseract-ocr-3.02.02.tar.gz
 

2. Configure, compile, install libs:

 
tar xzvf leptonica-1.69.tar.gz
cd leptonica-1.69
./configure
make
sudo make install

tar xzf tesseract-ocr-3.02.02.tar.gz
cd tesseract-3.01
./autogen.sh
./configure
make
sudo make install
sudo ldconfig

3. Download languages (english) and copy to tessdata folder:

wget http://tesseract-ocr.googlecode.com/files/tesseract-ocr-3.02.eng.tar.gz
tar xzf tesseract-ocr-3.02.eng.tar.gz
sudo cp tesseract-ocr/tessdata/* /usr/local/share/tessdata

Was this answer helpful?

« Back