Linux TESSERACT-OCR Installation and training samples

Source: Internet
Author: User
Tags automake

    1. Install the corresponding Lib (Install the Libs)

Reference: http://www.eefocus.com/winter1988/blog/13-03/292209_03d5b.html

sudo apt-get install autoconf automake libtoolsudo apt-get install libpng12-devsudo apt-get install Libjpeg62-devsudo apt- Get install Libtiff4-devsudo apt-get install Zlib1g-dev


Ensure that the following Lib is installed:

sudo apt-get install gcc sudo apt-get install g++ sudo apt-get install Automake


Install Leptonica:

$wget http://leptonica.googlecode.com/files/leptonica-1.69.tar.gz

$tar ZXVF leptonica-1.69.tar.gz


CD to its directory:

./configure && make && sudo make install


Install Tesseract:

$wget http://tesseract-ocr.googlecode.com/files/tesseract-ocr-3.02.02.tar.gz

$tar ZXVF tesseract-ocr-3.02.02.tar.gz

CD to its directory:

./configure && make && sudo make install

Required after Install sudo ldconfig

If you use the training package, you need to install the English bag

Set the directory where the Tessdata_prefix language pack is located (the language pack will be imported directly into the Tessdata directory after training under win)

Export tessdata_prefix=/usr/tesseract-ocr/


2. Training samples

Reference: http://blog.csdn.net/yasi_xi/article/details/8763385

http://blog.csdn.net/marvinhong/article/details/8459591

It is important to note that the last five packages are renamed

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.