Installing TESSERACT-OCR
1. Leptonica requires source code compilation and installation http://www.leptonica.org/
Leptonica Bag: leptonica-1.73.tar.gz
Switch to the leptonica-1.68 root directory after decompression
./configure
Make
Make install
2.tesseract Installation:
Rely on installation to start installing Tesseract
Download tesseract-3.01 installation package: http://tesseract-ocr.googlecode.com/files/tesseract-3.01.tar.gz
Switch to the tesseract-3.01 root directory after decompression
(If you encounter an error like strngs.h:1: Error:stray ' \357 ' in the program when you make it, convert the Tesseract-3.01/ccutil/strngs.h file to ANSI encoding to save and recompile)
./autogen.sh
./configure
Make
Make install
Ldconfig
Tesseract English Language pack installation:
Download tesseract-3.01 English Language pack: http://tesseract-ocr.googlecode.com/files/tesseract-ocr-3.01.eng.tar.gz
sudo cp tesseract-ocr/tessdata/*/usr/local/share/tessdata/
Test it:
Switch to the tesseract-3.01 root directory after decompression (this directory has a self-phototest.tif can be used for testing)
Tesseract phototest.tif Phototest-l Eng
Output: 1
In this case, a phototest.txt text file should be generated in the current directory, and the content is the text displayed phototest.tif.
Linux Installation TESSERACT-OCR