Instalar tesseract en Ce ntos

Tomado de:

Tesseract OCR 3.0 and Leptonica Installation on CentOS 5.5 and openSuse 11.3
Mon, 02/28/2011 – 12:18 — Pankaj

Tesseract installation depends on lots of other packages, the main one being leptonica. I was working on installing tesseract OCR on Cent OS 5.5. These were the steps that enables me to successfully set it up on Cent OS 5.5 and openSuse 11.3.

You may use zypper instead of yum on openSuse 11.3, the instructions and package names remain the same.

Leptonica Installation

1. Install the following packages using yum
* yum install libjpeg-devel libpng-devel libtiff-devel zlib-devel
2. For compiling the any source code on linux gcc gcc-c++ and make utility would be required, install them again using yum

* yum install gcc gcc-c++ make
3. Download Leptonica source 1.67 from and compile it using the following commands

* ./configure

* ./make

* ./make install
*If you get error while running make in the above step for functions like sqrt, cos, sin, sincos, etc, then you may have to append -lm option to the make file in the src folder of leptonica source code and run the make again

Tesseract Installation

1. Download the Tesseract source code from the location
2. Extract the source code into a directory and use the standard commands to compile the code as shown below

* ./configure

* ./make

* ./make install

Post Installation Steps

Some enviornments may need to setup following environment variable to be exported

export LD_LIBRARY_PATH=/usr/local/lib

The english language training data can be downloaded from

After extraction of the language bundle, copy it in /usr/local/share/tessdata folder.

This completes the tesseract installation and now you should be able to run tesseract on linux



Introduce tus datos o haz clic en un icono para iniciar sesión:

Logo de

Estás comentando usando tu cuenta de Cerrar sesión / Cambiar )

Imagen de Twitter

Estás comentando usando tu cuenta de Twitter. Cerrar sesión / Cambiar )

Foto de Facebook

Estás comentando usando tu cuenta de Facebook. Cerrar sesión / Cambiar )

Google+ photo

Estás comentando usando tu cuenta de Google+. Cerrar sesión / Cambiar )

Conectando a %s

A %d blogueros les gusta esto: