Contents
- What exactly is Tesseract OCR?
- What is Tesseract OCR used for?
- How does Tesseract work?
- How to install Tesseract OCR on Windows, macOS and Linux
- How to use Tesseract in Python with pytesseract
- How to improve Tesseract OCR accuracy
- What We Measured: Tesseract Against Real Invoices
- The advantages of Tesseract OCR
- The disadvantages of Tesseract OCR
- Open-source OCR alternatives to Tesseract
- FAQ
What exactly is Tesseract OCR?
Tesseract OCR is a free engine that detects and extracts text from images and scans, turning them into machine-readable content. It reads characters, not meaning, so it cannot tell a genuine document from an edited one: that is the job of document fraud detection. On supplier bills, this blind spot is how invoice fraud gets through when nothing checks the file itself.
Originally developed in the 1980s by Hewlett-Packard, it was released as open source in 2005, then sponsored by Google for more than a decade. Today a small group of volunteer developers maintains it: the latest release, Tesseract 5.5.5, came out on 26 November 2026. It fixes nine security advisories and many crashes on crafted images or model files, so any server that runs Tesseract on files sent by outsiders should move to it.
Tesseract is distributed under the Apache 2.0 licence: free, and free to use, modify, or redistribute without asking anyone's permission. In practice, a company can integrate it into its own software, adapt it to its documents, or fix a bug itself rather than waiting for a vendor patch. This is also what explains its longevity: more than twenty years after its creation, a community of developers keeps maintaining it.

A Tesseract alternative that is ready to use?
An AI OCR that extracts the fields from your documents and checks they are authentic. Plugs into your tools by MCP and API.
Discover Koncile OCRWhat is Tesseract OCR used for?
Tesseract OCR is used to turn images of printed text into text a computer can search, copy or process. Its most common jobs, in libraries, back offices and developer scripts, fall into five groups.
- Searchable PDFs. Scans of books, archives and contracts get an invisible text layer, so they can be searched and copied. University libraries, such as the University of Illinois in its guide to OCR and searchable PDFs, teach Tesseract for exactly this.
- Digitizing archives. Old reports, newspapers and typewritten records become full text for search engines and research databases.
- Screenshots and images in scripts. A few lines of Python read the text of a screenshot, a label or a scanned form inside an automation.
- The first step of data extraction. Tesseract returns raw text; a second layer of rules or a language model then finds the date, the total or the account number.
- Offline and private OCR. It runs on a plain CPU with no internet connection, which matters when files may not leave the company network.
What it is not built for: telling you which number on a page is the invoice total, reading handwriting, or noticing that a document was edited before it was scanned.
How does Tesseract work?
Tesseract reads a page in three passes. It first finds the blocks of text on the image (page layout analysis), then cuts each block into lines and words, and finally recognizes each line of characters. Since version 4, released in 2018, that last step is done by an LSTM neural network, a type of model built to read sequences. So yes, Tesseract uses AI, but a narrow kind: it recognizes characters line by line, it does not understand what a total, a date or a table means.
Three settings decide most of the result. The language model (-l eng, -l fra, or several at once with -l eng+fra) comes as a separate traineddata file, in a fast or a more accurate (best) version, for more than 100 languages. The engine mode (--oem) chooses between the LSTM network, the legacy engine from the HP years, or both. The page segmentation mode (--psm) tells Tesseract what kind of page it is looking at: --psm 3, the default, detects the layout on its own, --psm 6 treats the image as one uniform block of text, and --psm 4 as a single column. On invoices, switching from 3 to 6 often changes more than any other setting.
How to install Tesseract OCR on Windows, macOS and Linux
Tesseract is a command line program: you install the engine once, then call it from a terminal or from code. On Windows, the project points to the installer built by the University Library of Mannheim, also available through winget:
winget install UB-Mannheim.TesseractOCR
The installer puts Tesseract in C:\Program Files\Tesseract-OCR. If the terminal answers that tesseract is not recognized, add that folder to the PATH environment variable and open a new terminal. On macOS, Homebrew installs the engine and, separately, the extra languages:
brew install tesseract
brew install tesseract-lang
On Ubuntu and Debian, one package per language:
sudo apt install tesseract-ocr tesseract-ocr-fra
Ubuntu 24.04 ships version 5.3.4, the one we used in our test below; to get the latest 5.5 release, add a more recent repository or build from source. Check the installation and the languages available, then run a first page:
tesseract --version
tesseract --list-langs
tesseract invoice.png result -l eng --psm 6
tesseract scan.png scan -l eng pdf
The third line writes the text to result.txt. The last one produces scan.pdf, a searchable PDF where the recognized text sits invisibly under the image. Tesseract does not open PDFs directly: convert each page to an image first, or use a wrapper such as OCRmyPDF, which runs Tesseract on a whole PDF.
Tesseract OCR online and in the browser: Tesseract.js
If you cannot install a program, Tesseract.js runs the same engine in a web page or in Node.js. It wraps a WebAssembly port of Tesseract, so the recognition model is the same, and its maintainers say plainly that it does not read PDF files and does not improve accuracy over the original engine. Version 7 needs Node.js 16 or newer.
npm install tesseract.jsMost free “Tesseract OCR online” sites are built this way. Before uploading a contract or a pay slip to one of them, check where the file is processed: a page that runs Tesseract.js in your browser keeps the file on your computer, a page that sends it to a server does not.
How to use Tesseract in Python with pytesseract
pytesseract is the usual way to call Tesseract from Python. It is only a wrapper: it runs the Tesseract program installed above, so the engine must be installed first.
pip install pytesseract pillowfrom PIL import Image
import pytesseract
# Windows only, if Tesseract is not on the PATH:
# pytesseract.pytesseract.tesseract_cmd = r"C:\Program Files\Tesseract-OCR\tesseract.exe"
image = Image.open("invoice.png")
# Raw text of the page
text = pytesseract.image_to_string(image, lang="eng", config="--psm 6")
print(text)
# Word by word, with a confidence score from 0 to 100
data = pytesseract.image_to_data(image, lang="eng", output_type=pytesseract.Output.DICT)
for word, conf in zip(data["text"], data["conf"]):
if word.strip():
print(word, conf)
The OCR confidence score is the closest thing Tesseract has to saying it is unsure, and it is worth filtering on: a word below 60 deserves a second look. It does not catch everything, though. As our test below shows, a page tilted by a few degrees can come back with no amount at all and no error. pytesseract.image_to_osd detects a page turned by 90 or 180 degrees, not a small tilt: straighten scans before OCR, for example with OpenCV.
How to improve Tesseract OCR accuracy
Most poor Tesseract results come from the image, not from the engine. The official documentation is blunt about it: unless you use a very unusual font or a new language, retraining Tesseract is unlikely to help. Fix the input first, then the settings, in this order.
Four steps before blaming Tesseract
- Step 1Clean the image
- 300 DPI or more
- Straight lines, dark on light
- Step 2Pick the page mode
- --psm 6 for one block
- --psm 4 for one column
- Step 3Narrow the alphabet
- Whitelist digits on amounts
- Dictionaries off for codes
- Step 4Check the output
- Filter low confidence words
- Compare totals with lines
Fix the image before the settings
Tesseract works best on images of at least 300 DPI, so upscale small scans and photos. Since version 4 it expects dark text on a light background: invert white on black screenshots. Straighten tilted pages, because line segmentation degrades quickly with skew, which is exactly what broke our invoice test below. Crop dark scanner borders, but leave a white margin of about 10 pixels around tightly cropped text. If the background is uneven, try the Adaptive Otsu or Sauvola binarization that Tesseract 5 added, or threshold the image yourself with OpenCV.
Choose the right page segmentation mode
The default --psm 3 guesses the layout. For an invoice or a receipt, --psm 6 (one uniform block) or --psm 4 (one column) is often better, --psm 7 reads a single line, and --psm 11 finds scattered text such as a form with labels. Tesseract 5.5.5 also adds an option, off by default, that reads newspaper style pages column by column: -c textord_auto_columns=1.
Restrict characters and dictionaries
Tesseract is tuned to read sentences of real words. On amounts, references or serial numbers, tell it what to expect: tessedit_char_whitelist limits the characters it may return, and setting load_system_dawg and load_freq_dawg to false turns off the dictionaries that push codes toward real words.
tesseract total.png out -l eng --psm 7 -c tessedit_char_whitelist=0123456789.,Tables remain the known weak spot: the documentation itself notes that Tesseract struggles with table data without custom layout analysis. If your documents are mostly tables, the vision language models compared below are the better tool.
What We Measured: Tesseract Against Real Invoices
The introduction promises an analysis of Tesseract's performance. Rather than a general claim, here is the result of a test we ran ourselves.
We ran Tesseract 5.3.4 on 14 invoices reconstructed from real layouts, with amounts and table lines known in advance, deliberately degraded to mimic common scanning conditions: noise, slight blur, low contrast, photocopy, a stamp overlapping the text, and slight rotation. For each one, we checked whether the expected totals and table lines were recovered exactly in the raw text returned by Tesseract, with no post-processing or manual correction.
Across these 14 invoices, Tesseract correctly recovered 81.4% of the 70 numeric fields checked (totals and table lines), in 0.44 seconds per page on average, on a single CPU thread with no GPU. This average hides a sharp gap depending on the type of degradation: on noise, slight blur, a high-contrast photocopy, or a stamp overlapping the text, Tesseract recovers nearly all the values (100% in our tests). But as soon as an invoice is slightly tilted, 3 to 5 degrees, nothing more, that rate drops to 31%. The columns of figures become misaligned and the engine often returns text that no longer contains any amount, without ever flagging an error.


On the invoice above, the rotation doesn't hinder human reading at all, but Tesseract fails to recover any of the six table lines or the total of €1,969.75, without raising the slightest error. This is the most concrete blind spot of OCR alone: the engine never knows how to say "I'm not sure" or "I failed". Without human oversight or a downstream verification layer, this kind of silent error goes straight into the books.
Methodology: test conducted in September 2026 on a reconstructed corpus, not on client invoices, for confidentiality reasons, which also made it possible to have reference values known in advance for each field. It does not replace a measurement on a real production corpus, which we will document in a future update to this article, but gives a verifiable order of magnitude, with method and data available on request, rather than an unsourced marketing figure.
The advantages of Tesseract OCR
Tesseract's advantages come down to one idea: free, proven for twenty years, and able to run without a GPU or heavy infrastructure.
The disadvantages of Tesseract OCR
Tesseract's disadvantages centre on everything outside clean printed text: nested tables, handwriting extraction, complex layouts.
One point does not appear in the table above but deserves particular attention for sensitive use cases: Tesseract, like any pure OCR engine, only reads text, with no ability to check whether a scanned document has been altered, falsified, or fabricated. For sectors that handle high-value supporting documents (insurance, banking, HR, real estate), this limitation makes it worth combining OCR with a dedicated fraud detection layer, capable of analysing file structure and the consistency of extracted data, not just their readability.

Open-source OCR alternatives to Tesseract
Tesseract remains one of the most popular and robust open-source OCR solutions in 2026, particularly for standard text-extraction applications on clean, printed documents, with no need for a GPU to run. However, its limitations on complex layouts, handwriting recognition, and its dependency on image preprocessing have opened the door, since 2025, to a new generation of open-source alternatives, limitations especially visible in cases requiring fine handwriting recognition.
In 2026, the real alternatives to Tesseract are no longer classic OCR engines but open source vision language models, with TeleOCR, OvisOCR2 and PaddleOCR-VL 1.6 at the top of the OmniDocBench v1.6 leaderboard, which read tables and handwriting better, at the cost of a GPU. Before the detail, here is the direct comparison several readers asked for: the eight engines mentioned in this article, on the same criteria.
In 2026, these alternatives are no longer classic OCR engines like Tesseract, but open-source vision-language models (VLMs): instead of spotting characters one by one, they read a page as a whole image, which lets them handle tables, handwriting, and complex layouts far better. The trade-off is hardware: where Tesseract runs on a simple CPU, these models need a GPU to run under reasonable conditions.
Several of these models have established themselves since 2025. On the official OmniDocBench v1.6 leaderboard, TeleOCR (96.91), OvisOCR2 (96.47) and PaddleOCR-VL 1.6 (96.34) all score above 96 out of 100 with around one billion parameters, small enough for a single GPU. PaddleOCR-VL, developed by Baidu under the Apache 2.0 licence, remains the most mature to deploy and the strongest on tables and formulas. GLM-OCR, from Z.ai, scores 95.22 at 0.9 billion parameters. DeepSeek-OCR 2, released in January 2026 under Apache 2.0, reaches 90.25. olmOCR 2, from the Allen Institute for AI, is heavier (7 billion parameters, 12 GB of VRAM minimum) and its card reserves it for research and education. dots.mocr, the new name of dots.ocr, grew to 3 billion parameters and adds its own licence agreement on top of MIT: read it before shipping a product.
Mistral OCR is often mentioned in the same context, but doesn't belong to this category: it's a proprietary API with no open weights, so you cannot download the model, audit it or run it on your own machines for free.
This is what today's intelligent document processing solutions offer, combining OCR, contextual understanding, and business-process automation. The real question to ask in 2026 is therefore no longer "Tesseract or which alternative", but "CPU or GPU": Tesseract remains the right choice for standard, free needs with no GPU infrastructure to manage, while open-source VLMs or AI-based solutions go significantly further on complex documents, provided a GPU can be hosted. The choice therefore depends less on the brand than on actual priorities, document complexity, and available infrastructure.
Concretely, this splits into two use cases. For full-text search or digital archiving, finding a word across a batch of scanned PDFs, for example, Tesseract is largely sufficient, free, and with no vendor dependency. The handoff becomes necessary as soon as the extraction needs to be structured, which is what an invoice OCR does when it returns the right line of an invoice table instead of raw text, a document needs to be automatically matched against a purchase order or a payment, and verified as unaltered, three needs that no pure OCR engine, Tesseract included, covers. This is Koncile's positioning, which claims a success rate above 99% on essential invoice fields and more than 150 document-fraud signals detected (figures provided by Koncile; unlike the Tesseract test detailed earlier in this article, the company does not publish the measurement methodology behind these two figures). The two pillars are therefore complementary: structured extraction on one side, authenticity verification on the other.
To go further, see our selection of the 10 best open source OCR tools in 2026.
FAQ
What is Tesseract OCR and how does it work?
Tesseract is an open-source OCR engine that extracts text from images or scanned PDFs. It converts pixels into characters through several steps: text zone detection, line and word segmentation, then character recognition using trained models. The result is text that can be searched, indexed, or fed into automated processing.
Is Tesseract still the best open-source OCR in 2026?
Tesseract remains a reference among open-source OCR engines in 2026, especially for standard use cases with well-printed text and simple layouts, without needing a GPU. However, for highly structured documents, complex tables, or advanced handwriting recognition, newer open source vision language models (TeleOCR, OvisOCR2, PaddleOCR-VL 1.6, among others) deliver better results, provided you can host a GPU.
How do I install Tesseract OCR?
On Windows, run the installer from the University Library of Mannheim (winget install UB-Mannheim.TesseractOCR) and add C:\Program Files\Tesseract-OCR to the PATH. On macOS, run brew install tesseract, plus brew install tesseract-lang for other languages. On Ubuntu or Debian, run sudo apt install tesseract-ocr with one package per language, such as tesseract-ocr-fra. Check with tesseract --version.
Is Tesseract OCR free?
Yes. Tesseract is free and open source under the Apache 2.0 licence: you can use it for commercial work, modify it and ship it inside your own software without paying a fee. The only costs are your own: the server, the image preprocessing you build around it and the time spent fixing its errors.
Is there a better OCR than Tesseract?
For clean printed pages on a CPU, Tesseract is still hard to beat for free. For tables, handwriting and complex layouts, open source vision language models such as PaddleOCR-VL 1.6, TeleOCR or OvisOCR2 score higher on OmniDocBench v1.6 but need a GPU, and paid document AI services add field extraction and checks.
Is Tesseract or EasyOCR better?
It depends on the images. Tesseract is faster on a CPU and very good on clean scanned pages. EasyOCR, a Python library built on PyTorch, copes better with photos, signs and text on busy backgrounds and installs with a single pip command, but it is slow without a GPU and has had no release since September 2024. For scanned business documents, Tesseract usually wins; for photos, EasyOCR.
Can ChatGPT do OCR?
Yes. ChatGPT and other multimodal models read text in images, often better than Tesseract on messy layouts. But they may silently correct or invent a value, they send your documents to a third party server, and they cost more per page. For invoices, pay slips or bank statements, use a structured extraction that checks each field and flags what it is unsure about.
What are the main advantages of Tesseract OCR?
Tesseract is free, open source, and extensively documented, with an active community. It supports many languages, integrates easily into scripts or extraction pipelines, and performs well on properly scanned standard documents. Its cost model appeals to technical teams that want to keep control of their infrastructure and their costs.
What are the limitations of Tesseract OCR in production?
Tesseract shows its limits on noisy documents, poor-quality scans, complex layouts, or nested tables. It doesn't natively understand a document's business structure, often requires advanced image preprocessing, and remains poorly suited to modern handwriting recognition.
What open-source OCR alternatives to Tesseract exist in 2026?
In 2026, the real alternatives are open source vision language models: TeleOCR, OvisOCR2 and PaddleOCR-VL 1.6 lead the OmniDocBench v1.6 leaderboard above 96 out of 100, followed by GLM-OCR, DeepSeek-OCR 2, dots.mocr and olmOCR 2. They read tables, handwriting and complex layouts noticeably better than Tesseract, but need a GPU, whereas Tesseract runs on a plain CPU.
When should you prefer AI-based OCR over Tesseract?
AI-based OCR is preferable when documents are highly varied, include complex tables, forms, or handwritten notes, or when you need to extract precise information rather than plain raw text. These solutions combine computer vision and natural language processing to understand context and automate business workflows end to end.










