Version 2 (modified by jpo, 7 years ago) |
---|
apt-get install autoconf-archive automake g++ libtool libleptonica-dev pkg-config apt-get install git
# pdfimages apt-get install poppler-utils
apt-get install libjpeg-dev libtiff-dev libpng-dev
# if version 1.74+ of leptonica is not available in distro then compile from sources mkdir /usr/lib/leptonica cd /usr/lib/leptonica wget http://www.leptonica.com/source/leptonica-1.74.4.tar.gz gunzip leptonica-1.74.4.tar.gz tar -xf leptonica-1.74.4.tar cd leptonica-1.74.4 ./configure make make install
mkdir /usr/lib/tesseract cd /usr/lib/tesseract git clone https://github.com/tesseract-ocr/tesseract.git tesseract-ocr cd tesseract-ocr/ ./autogen.sh ./configure make make install ldconfig
cd /usr/local/share/tessdata/ wget https://github.com/tesseract-ocr/tessdata_fast/raw/master/script/Latin.traineddata wget https://github.com/tesseract-ocr/tessdata_fast/raw/master/pol.traineddata wget https://github.com/tesseract-ocr/tessdata_fast/raw/master/eng.traineddata wget https://github.com/tesseract-ocr/tessdata_fast/raw/master/osd.traineddata