Tesseract Open Source OCR Engine (main repository)
C++ C Shell Java CMake Makefile Other
Latest commit c768b58 Jan 22, 2017 @zdenop zdenop committed on GitHub Merge pull request #668 from Wikinaut/chg-textonly-pdf-parameter-desc…

Improve textonly_pdf parameter description
Failed to load latest commit information.
android Update Android.mk Dec 15, 2016
api Fix C-API Jan 21, 2017
arch Fix windows dll build. Dec 28, 2016
ccmain Merge pull request #668 from Wikinaut/chg-textonly-pdf-parameter-desc… Jan 21, 2017
ccstruct ccstruct: Remove unused local variable Jan 21, 2017
ccutil Remove code that is no longer needed Jan 15, 2017
classify Multi-page TIFF buffering is broken - fix #233 Dec 24, 2016
cmake Update SourceGroups.cmake Dec 15, 2016
contrib helper script to generate dawg input files from text Oct 17, 2016
cutil Merge pull request #531 from stweil/guards Dec 15, 2016
dict Fix building of training tools in shared configuration. Dec 17, 2016
doc doc: Remove cube related documentation Dec 16, 2016
java java: Improve build rules Dec 11, 2016
lstm lstm: Remove unused constant and unused local variables Jan 21, 2017
opencl Merge pull request #568 from stweil/opencl Dec 15, 2016
tessdata More makefile changes to remove cube Dec 14, 2016
testing Fix some issues reported by shellcheck (SC2004, SC2006) Dec 14, 2016
textord Remove code that is no longer needed Jan 15, 2017
training Remove code that is no longer needed Jan 15, 2017
viewer Replace reserved identifiers used in #define guards header files Dec 4, 2016
vs2010 Remove support for VS2010 Dec 16, 2016
wordrec Fix #define guards in header files Dec 4, 2016
.gitignore Add text2image binary when building with cppan. Jan 11, 2017
.travis.yml Travis CI - Update Leptonica to 1.74.0 Dec 24, 2016
AUTHORS AUTHORS: Add more contributors Nov 26, 2016
CMakeLists.txt Update CMakeLists.txt Dec 26, 2016
CONTRIBUTING.md CONTRIBUTING.md: Fix a typo May 29, 2016
COPYING Result of clang tidy on recent merge Nov 7, 2016
ChangeLog Limited max height to 48 even in variable height input, enabled neura… Nov 8, 2016
Dockerfile Dockerifying using travis build script Mar 18, 2016
INSTALL install data files; small fix of INSTALL, README; removed ABOUT-NLS (… Feb 5, 2012
INSTALL.GIT.md Update INSTALL.GIT.md Dec 26, 2016
LICENSE Added missing license headers Nov 18, 2016
Makefile.am Merge pull request #576 from stweil/shellcheck Dec 15, 2016
NEWS top-skimming import from sf.net Mar 7, 2007
README.md Update README.md Jan 7, 2017
appveyor.yml Update appveyor.yml Jan 16, 2017
autogen.sh Added missing license headers Nov 18, 2016
configure.ac configure.ac: Exit if compiler does not have c++11 support Jan 8, 2017
cppan.yml Update cppan.yml Jan 16, 2017
docker-compose.yml Dockerifying using travis build script Mar 18, 2016
tesseract.pc.in improve tesseract.pc.in - fixes #241 Mar 4, 2016


Build Status Build status

For the latest online version of the README.md see:



This package contains an OCR engine - libtesseract and a command line program - tesseract.

The lead developer is Ray Smith. The maintainer is Zdenko Podobny. For a list of contributors see AUTHORS and github's log of contributors.

Tesseract has unicode (UTF-8) support, and can recognize more than 100 languages "out of the box". It can be trained to recognize other languages. See Tesseract Training for more information.

Tesseract supports various output formats: plain-text, hocr(html), pdf.

This project does not include a GUI application. If you need one, please see the 3rdParty wiki page.

You should note that in many cases, in order to get better OCR results, you'll need to improve the quality of the image you are giving Tesseract.

The latest stable version is 3.04.01, released in February 2016.

Brief history

Tesseract was originally developed at Hewlett-Packard Laboratories Bristol and at Hewlett-Packard Co, Greeley Colorado between 1985 and 1994, with some more changes made in 1996 to port to Windows, and some C++izing in 1998.

In 2005 Tesseract was open sourced by HP. Since 2006 it is developed by Google.

Release Notes

For developers

Developers can use libtesseract C or C++ API to build their own application. If you need bindings to libtesseract for other programming languages, please see the wrapper section on AddOns wiki page.

Documentation of Tesseract generated from source code by doxygen can be found on tesseract-ocr.github.io.


The code in this repository is licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at


Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
See the License for the specific language governing permissions and
limitations under the License.

NOTE: This software depends on other packages that may be licensed under different open source licenses.

Installing Tesseract

You can either Install Tesseract via pre-built binary package or build it from source.

Running Tesseract

Basic command line usage:

tesseract imagename outputbase [-l lang] [--psm pagesegmode] [configfiles...]

For more information about the various command line options use tesseract --help or man tesseract.



Please read the FAQ before asking any question in the mailing-list or reporting an issue.