Forked from jamesBan/install ImageMagick+tesseract-ocr.sh
Created
August 30, 2014 06:43
-
-
Save ognjenm/fc0aa97d8332e1b506d3 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ```Shell | |
| wget http://leptonica.googlecode.com/files/leptonica-1.69.tar.bz2 | |
| tat xvf leptonica-1.69.tar.bz2 | |
| cd leptonica-1.69 | |
| ./configure | |
| make && make install | |
| ldconfig | |
| wget https://tesseract-ocr.googlecode.com/files/tesseract-ocr-3.02.02.tar.gz | |
| tar zxvf tesseract-ocr-3.02.02.tar.gz | |
| cd tesseract-ocr-3.02.02 | |
| ./autogen.sh | |
| ./configure | |
| make | |
| make install | |
| sudo ldconfig | |
| wget https://tesseract-ocr.googlecode.com/files/tesseract-ocr-3.02.eng.tar.gz | |
| tar zxvf tesseract-ocr-3.02.eng.tar.gz | |
| cd tesseract-ocr-3.02.eng | |
| mv * /usr/local/share/tessdata | |
| tesseract imagename outputbase [-l lang] [-psm pagesegmode] [configfiles...] | |
| ``` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment