Skip to content

Instantly share code, notes, and snippets.

@abuvanth
Created November 20, 2017 12:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save abuvanth/3d29d16a260e63c58d43867d78b18f77 to your computer and use it in GitHub Desktop.
Save abuvanth/3d29d16a260e63c58d43867d78b18f77 to your computer and use it in GitHub Desktop.
sudo apt-get install g++ -y
sudo apt-get install autoconf automake libtool -y
sudo apt-get install autoconf-archive -y
sudo apt-get install pkg-config -y
sudo apt-get install libpng12-dev -y
sudo apt-get install libjpeg8-dev -y
sudo apt-get install libtiff5-dev -y
sudo apt-get install zlib1g-dev -y
sudo apt-get install libicu-dev -y
sudo apt-get install libpango1.0-dev -y
sudo apt-get install libcairo2-dev -y
git clone https://github.com/DanBloomberg/leptonica.git
cd leptonica
./configure
make
sudo make install
cd ..
git clone https://github.com/tesseract-ocr/tesseract.git
cd tesseract
./autogen.sh
./configure
make
sudo make install
sudo ldconfig
make training
sudo make training-install
wget https://github.com/tesseract-ocr/tessdata/raw/master/tam.traineddata
wget https://github.com/tesseract-ocr/tessdata/raw/master/eng.traineddata
sudo mv tam.traineddata /usr/local/share/
sudo mv eng.traineddata /usr/local/share/
sudo pip install pyocr
echo "tesseract-ocr installed successfully"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment