Last active
February 5, 2018 10:18
-
-
Save jamesBan/a36744d42bc96fbbd566 to your computer and use it in GitHub Desktop.
install ImageMagick+tesseract-ocr
This file contains 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
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
In my way additionaly install a few packages
sudo apt-get install build-essential libtool sudo apt-get install autotools-dev sudo apt-get install automake