-
-
Save akashjobanputra/2c54acb04e75d3967abd7279303ffa8a to your computer and use it in GitHub Desktop.
Install Tesseract 3.04 on Amazon AWS AMI
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
sudo yum install autoconf aclocal automake | |
sudo yum install libtool | |
sudo yum install libjpeg-devel libpng-devel libtiff-devel zlib-devel | |
cd ~/downloads | |
wget http://www.leptonica.com/source/leptonica-1.72.tar.gz | |
tar -zxvf leptonica-1.72.tar.gz | |
cd leptonica-1.72 | |
./configure | |
make | |
sudo make install | |
cd .. | |
wget https://github.com/tesseract-ocr/tesseract/archive/3.04.00.tar.gz | |
tar -zxvf 3.04.00.tar.gz | |
cd tesseract-3.04.00/ | |
./autogen.sh | |
./configure | |
make | |
sudo make install | |
sudo ldconfig | |
cd /usr/local/share/tessdata | |
sudo wget https://github.com/tesseract-ocr/tessdata/raw/3.04.00/eng.traineddata | |
sudo wget https://github.com/tesseract-ocr/tessdata/raw/3.04.00/osd.traineddata | |
nano ~/.bash_profile | |
# Copy this line to the end: export TESSDATA_PREFIX=/usr/local/share/ | |
# Update variables: | |
source ~/.bash_profile | |
# Verify: | |
tesseract --list-langs |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment