Zmiany pomiędzy wersją 1 and wersją 2 dla DeployerGuide/Customization/OCRInvoice

Pokaż
Ignoruj:
Data i czas:
04/05/18 15:02:36 (7 years temu)
Autor:
jpo (IP: 83.144.106.170)
Komentarz:

--

Legend:

Bez zmian
Dodane
Usunięte
Zmienione
  • DeployerGuide/Customization/OCRInvoice

    v1 v2  
    1 aaa 
     1apt-get install autoconf-archive automake g++ libtool libleptonica-dev pkg-config 
     2apt-get install git 
     3 
     4# pdfimages 
     5apt-get install poppler-utils 
     6 
     7apt-get install libjpeg-dev libtiff-dev libpng-dev 
     8 
     9# if version 1.74+ of leptonica is not available in distro then compile from sources 
     10mkdir /usr/lib/leptonica 
     11cd /usr/lib/leptonica 
     12wget http://www.leptonica.com/source/leptonica-1.74.4.tar.gz 
     13gunzip leptonica-1.74.4.tar.gz 
     14tar -xf leptonica-1.74.4.tar 
     15cd leptonica-1.74.4 
     16./configure 
     17make 
     18make install 
     19 
     20mkdir /usr/lib/tesseract 
     21cd /usr/lib/tesseract 
     22git clone https://github.com/tesseract-ocr/tesseract.git tesseract-ocr 
     23cd tesseract-ocr/ 
     24./autogen.sh 
     25./configure 
     26make 
     27make install 
     28ldconfig 
     29 
     30cd /usr/local/share/tessdata/ 
     31wget https://github.com/tesseract-ocr/tessdata_fast/raw/master/script/Latin.traineddata 
     32wget https://github.com/tesseract-ocr/tessdata_fast/raw/master/pol.traineddata 
     33wget https://github.com/tesseract-ocr/tessdata_fast/raw/master/eng.traineddata 
     34wget https://github.com/tesseract-ocr/tessdata_fast/raw/master/osd.traineddata