Skip to content

Instantly share code, notes, and snippets.

@jamesBan
Last active February 5, 2018 10:18
Show Gist options
  • Save jamesBan/a36744d42bc96fbbd566 to your computer and use it in GitHub Desktop.
Save jamesBan/a36744d42bc96fbbd566 to your computer and use it in GitHub Desktop.
install ImageMagick+tesseract-ocr
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...]
@velykov
Copy link

velykov commented Feb 5, 2018

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment