Tesseract User Manual (2024)

This user manual is for Tesseract versions 5.x.For versions 4.x.x, 3.05.02 and older, see the documentation for old versions.

  • Tesseract User Manual
    • Introduction
    • Releases and Changelog
    • Tesseract with LSTM
    • 5.x.x
      • Source Code
      • Binaries
      • Traineddata Files
      • Compiling and Installation
      • Usage
      • API Examples
      • Technical Information
      • Training for Tesseract 5
      • Testing
      • External Projects
    • User Manual for Old Versions

Introduction

Tesseract is an open source text recognition (OCR) Engine, available under the Apache 2.0 license.

  • Major version 5 is the current stable version and started with release 5.0.0 on November 30, 2021.
  • Newer minor versions and bugfix versions are available fromGitHub.
  • Latest source code is available from main branch on GitHub.Open issues can be found in issue tracker,and planning documentation.

Tesseract can be used directly via command line, or (for programmers) by using an API to extract printed text from images. It supports a wide variety of languages. Tesseract doesn’t have a built-in GUI, but there are several available from the 3rdParty page. External tools, wrappers and training projects for Tesseract are listed under AddOns.

Tesseract can be used in your own project, under the terms of the Apache License 2.0. It has a fully featured API, and can be compiled for a variety of targets including Android and the iPhone. See the 3rdParty and AddOns pages for samples of what has been done with it.

If you have a question, first read the documentation,particularly the FAQ to see if your problem is addressed there.If not, search the Issues List,Tesseract user forum,and if you still can’t find what you need, please ask your question inTesseract user forum Google group.

Tesseract is free software, so if you want to pitch in and help, please do!If you find a bug and fix it yourself, the best thing to do is to attach the patch to your bug report in the Issues List.

Releases and Changelog

Tesseract with LSTM

Tesseract 4.0 added a new OCR engine based on LSTM neural networks. It works well on x86/Linux with official Language Model data available for 100+ languages and 35+ scripts. See 4.0x-Changelog for more details.

5.x.x

Source Code

Tesseract 5.x.x source code is available in the main branch of the repository.The main branch is using 5.0.0 semver versioning because C++ code modernization caused APIincompatibility with 4.x release.

Binaries

Binaries are available from:

Traineddata Files

For detailed information about the different types of models, see Data Files.

Model files for version 4.00 are available from tessdata tagged 4.00. It has models from November 2016. The individual language file links are available from the following link.

Model files for version 4.0.0 and later are available from tessdata tagged 4.0.0.It has legacy models from September 2017 that have been updated with Integer versionsof tessdata_best LSTM models. This set of traineddata files has support for boththe legacy recognizer with --oem 0 and for LSTM models with --oem 1.These models are available from the following Github repo.

Two more sets of official traineddata, trained at Google, are made available inthe following Github repos. These do not have the legacy models and only haveLSTM models usable with --oem 1.

Language model traineddata files same as listed above for version 4.0.0 can be usedwith Tesseract 5.x.x. These are available from:

Compiling and Installation

  • Compiling and GitInstallation - Linux
  • Compiling - Other O/S
  • Installation
  • Docker Containers

Usage

  • Tips to Improve Recognition
  • Command Line Usage
  • Input Formats
  • Viewer Debugging
  • Common Errors and Resolutions
  • Frequently Asked Questions

API Examples

  • API Example
  • API Example - user_patterns
  • User App Example
  • C++ Examples

Technical Information

Training for Tesseract 5

Training with tesstrain.sh (a.k.a tesseract 4 training) in unsupported/abandoned.Please use scripts from tesseract-ocr/tesstrain for training.

Testing

  • Benchmarks
  • TestingTesseract
  • UNLV Testing of Tesseract

External Projects

  • AddOns
  • User Projects - 3rdParty

User Manual for Old Versions

  • Tesseract 4 Documentation
  • Tesseract 3 Documentation
Tesseract User Manual (2024)
Top Articles
Latest Posts
Article information

Author: Ray Christiansen

Last Updated:

Views: 5848

Rating: 4.9 / 5 (69 voted)

Reviews: 84% of readers found this page helpful

Author information

Name: Ray Christiansen

Birthday: 1998-05-04

Address: Apt. 814 34339 Sauer Islands, Hirtheville, GA 02446-8771

Phone: +337636892828

Job: Lead Hospitality Designer

Hobby: Urban exploration, Tai chi, Lockpicking, Fashion, Gunsmithing, Pottery, Geocaching

Introduction: My name is Ray Christiansen, I am a fair, good, cute, gentle, vast, glamorous, excited person who loves writing and wants to share my knowledge and understanding with you.