ArticleslgStudy

computer science

Tesseract (software)

Tesseract (software) is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Tesseract (software) rather than just read about it. In short: Tesseract is an optical character recognition engine for various operating systems. It is free software, released under the Apache License.

Tesseract (software) — main illustration
Tesseract (software) — illustration

Key takeaways

  • Tesseract (software) belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Tesseract (software) to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Tesseract (software) from memory before moving on to harder problems.

Reference excerpt

Tesseract is an optical character recognition engine for various operating systems. It is free software, released under the Apache License. Originally developed by Hewlett-Packard as proprietary software in the 1980s, it was released as open source in 2005 and development was sponsored by Google in 2006. In 2006, Tesseract was considered one of the most accurate open-source OCR engines available.

History The Tesseract engine was originally developed as proprietary software at Hewlett-Packard labs in Bristol, England and Greeley, Colorado, United States between 1985 and 1994, with more changes made in 1996 to port to Windows, and partial migration from C to C++ in 1998. A majority of the code was written in C, some written in C++. Since then, all the code has been converted to C++. Very little work was done in the following decade. It was then released as an open source in 2005 by Hewlett-Packard and the University of Nevada, Las Vegas (UNLV). Tesseract development was sponsored by Google in 2006. Version 4 (released in 2018) adds LSTM-based OCR engine and models for many additional languages and scripts, bringing the total to 116 languages. Additionally, 37 scripts are supported. Since 2018, the Mannheim University Library has contributed to the development of Tesseract through several projects. Most of these were funded by the German Research Foundation. Version 5 was released in 2021.

Development Tesseract was in the top three OCR engines in terms of character accuracy in 1995. It is available for Linux, Windows and Mac OS X. Tesseract, up to and including version 2 (released 2007), could only accept TIFF images of simple one-column text as inputs. These early versions did not include layout analysis, and so inputting multi-columned text, images, or equations produced garbled output. Since version 3 (released in 2010), Tesseract has supported output text formatting, hOCR positional information and page-layout analysis. Support for a number of new image formats was added using the Leptonica library. Tesseract can detect whether text is monospaced or proportionally spaced. The initial versions of Tesseract could only recognize English-language text. Tesseract v2 added six additional Western languages (French, Italian, German, Spanish, Brazilian Portuguese, Dutch). Version 3 extended language support significantly to include ideographic (Chinese & Japanese) and right-to-left (e.g. Arabic, Hebrew) languages, as well as many more scripts. New languages included Arabic, Bulgarian, Catalan, Chinese (Simplified and Traditional), Croatian, Czech, Danish, German (Fraktur script), Greek, Finnish, Hebrew, Hindi, Hungarian, Indonesian, Japanese, Korean, Latvian, Lithuanian, Norwegian, Polish, Portuguese, Romanian, Russian, Serbian, Slovak (standard and Fraktur script), Slovenian, Swedish, Tagalog, Tamil, Thai, Turkish, Ukrainian and Vietnamese. V3.04, released in July 2015, added an additional 39 language/script combinations, bringing the total count of support languages to over 100. New language codes included: amh (Amharic), asm (Assamese), aze_cyrl (Azerbaijana in Cyrillic script), bod (Tibetan), bos (Bosnian), ceb (Cebuano), cym (Welsh), dzo (Dzongkha), fas (Persian), gle (Irish), guj (Gujarati), hat (Haitian and Haitian Creole), iku (Inuktitut), jav (Javanese), kat (Georgian), kat_old (Old Georgian), kaz (Kazakh), khm (Central Khmer), kir (Kyrgyz), kur (Kurdish), lao (Lao), lat (Latin), mar (Marathi), mya (Burmese), nep (Nepali), ori (Oriya), pan (Punjabi), pus (Pashto), san (Sanskrit), sin (Sinhala), srp_latn (Serbian in Latin script), syr (Syriac), tgk (Tajik), tir (Tigrinya), uig (Uyghur), urd (Urdu), uzb (Uzbek), uzb_cyrl (Uzbek in Cyrillic script), yid (Yiddish). It can be trained to work in other languages. Accuracy rates for other language processing were shown in a presentation at DAS 2016, Santorini by Ray Smith. Tesseract is suitable for use as a backend and can be used for more complicated OCR tasks including layout analysis by using a frontend such as OCRopus. Tesseract's output will have very poor quality if the input images are not preprocessed to suit it: Images (especially screenshots) must be scaled up such that the text x-height is at least 20 pixels, any rotation or skew must be corrected or no text will be recognized, low-frequency changes in brightness must be high-pass filtered, or Tesseract's binarization stage will destroy much of the page, and dark borders must be manually removed, or they will be misinterpreted as characters.

User interfaces

Tesseract is executed from the command-line interface. While Tesseract is not supplied with a GUI, there are many separate projects which provide a GUI for it. One common example is OCRFeeder. A cross-platform open-source GUI is gImageReader [1]

Reception In a July 2007 article on Tesseract, Anthony Kay of Linux Journal termed it "a quirky command-line tool that does an outstanding job". At that time he noted "Tesseract is a bare-bones OCR engine. The build process is a little quirky, and the engine needs some additional features (such as layout detection), but the core feature, text recognition, is drastically better than anything else I've tried from the Open Source community. It is reasonably easy to get excellent recognition rates using nothing more than a scanner and some image tools, such as The GIMP and Netpbm." In November 2020, Brewster Kahle from the Internet Archive praised Tesseract, saying:

Tesseract has made a major step forward in the last few years. When we last evaluated the accuracy it was not as good as the proprietary OCR, but that has changed– we have done evaluations and it is just as good, and can get better for our application because of its new architecture.

See also LibTIFF

References

External links

Official website

Illustrations

Tesseract (software) illustration
Tesseract (software): Tesseract configuration window in OCRFeeder
Tesseract configuration window in OCRFeeder

Worked examples

Example 1 — a first encounter with Tesseract (software)

Start with the simplest possible case. Write down what Tesseract (software) claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Tesseract (software) before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Tesseract (software) ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Tesseract (software)

In research
Tesseract (software) appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Tesseract (software) in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Tesseract (software) is common in secondary-school and first-year university syllabi. It links to neighbouring topics Formerly proprietary software, Free software programmed in C, Free software programmed in C++, so understanding it makes those chapters shorter.
In everyday life
Look for Tesseract (software) outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Tesseract (software)” →

How to study Tesseract (software) in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Tesseract (software) means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Tesseract (software) out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Tesseract (software) in simple terms?

Tesseract is an optical character recognition engine for various operating systems. It is free software, released under the Apache License.

Why does Tesseract (software) matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Tesseract (software)?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Tesseract (software).

Tags

  • Formerly proprietary software
  • Free software programmed in C
  • Free software programmed in C++
  • Google software
  • HP software
  • Optical character recognition software
  • Software using the Apache license

Keep exploring