Get the latest version number from here and update v variable in the following gist:
v=4.1.1
apt-get install g++ autoconf automake libtool pkg-config libpng-dev libjpeg62-turbo-dev libtiff5-dev zlib1g-dev libleptonica-dev -y
cd /usr/src
wget https://github.com/tesseract-ocr/tesseract/archive/$v.tar.gz
tar -zxvf $v.tar.gz
cd tesseract-$v
./autogen.sh
./configure --prefix=/usr/local
make
make install
wget https://github.com/tesseract-ocr/tessdata/raw/master/eng.traineddata -O /usr/local/share/tessdata/eng.traineddata
No comments:
Post a Comment