simple servers

Knowledgebase


Portal Home > Knowledgebase > Servers > Install Tesseract OCR libs from sources in Centos

Install Tesseract OCR libs from sources in Centos

1. Download Leptonica and Teseract sources:

 

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:

tar xzf tesseract-ocr-3.02.eng.tar.gz
$ sudo cp tesseract-ocr/tessdata/* /usr/local/share/tessdata

Also Read