How accurate an OCR engine is depends heavily on the material: printed text, phone photos, handwriting or Fraktur behave completely differently. A reliable comparison is only possible with your own test documents and a clear metric such as the character error rate (CER). This article shows how to measure, what Tesseract and the big cloud services offer according to their documentation, and what to watch out for regarding privacy. We do not publish our own benchmark here.

What is OCR and why does accuracy matter?

OCR (optical character recognition) turns text in images and scanned documents into machine-readable characters: digitising invoices, making contracts searchable, extracting form data. A single misrecognised character can have consequences – for example when an invoice amount of €1,000 becomes €10,000 or an account number no longer matches.

How do you measure OCR accuracy?

The usual metric is the character error rate (CER): you compare the OCR output with an error-free transcription (ground truth) and count inserted, deleted and substituted characters. The evaluation specification of the OCR-D project defines it as the sum of these errors divided by the number of characters in the transcription. The word error rate (WER) measures errors at word level in the same way.

For a fair comparison you need:

  • test documents that match your real material, for example invoices, phone photos or forms,
  • a checked transcription for each document,
  • the same input files for all engines,
  • and a record of engine version, language model, settings and date.

Percentages without these details say little. Also look at the type of error: a swapped punctuation mark is harmless, a wrong digit in an amount, IBAN or invoice number is not. Check such fields for confused look-alike characters such as 0 and O or 1, l and I.

Tesseract: open source on your own hardware

Tesseract is an open-source OCR engine. Since version 4.0 it has used recognition based on LSTM neural networks; the current major version 5 has been available since November 2021. The documentation lists support for more than 100 languages and more than 35 scripts; there is a dedicated model for Fraktur (tessdata_best). Because Tesseract runs on your own hardware, documents never leave your system.

How good the result is depends heavily on the source. The documentation points out, for example, that Tesseract expects a page of running text by default and that skewed scans significantly reduce line segmentation quality.

Better results through preprocessing

The Tesseract documentation “Improving the quality of the output” names several levers:

  • Resolution: Tesseract works best on images of at least 300 dpi; upscaling can help with low-resolution sources.
  • Binarisation: Tesseract converts to black and white internally using the Otsu method. With unevenly lit sources the result can be poor; then your own preprocessing helps.
  • Skew: if a page is too skewed, line segmentation suffers. Straighten scans and photos first.
  • Noise and borders: stray pixels and dark scan borders can be misread as characters.
  • Page segmentation: there are dedicated modes for single lines, words or columns (option --psm).

Cloud OCR: Google Cloud Vision, AWS Textract and Azure

The big cloud providers process documents on their servers. What their documentation lets you compare is mainly pricing and how they handle your data:

Provider information, as of October 2026
ServicePrice for text recognitionData handling according to the provider
Google Cloud Visionfirst 1,000 units per month free, then US$1.50 per 1,000, from 5 million US$0.60 per 1,000content is not used to train Cloud Vision; online requests are processed in memory and not persisted to disk; EU endpoint available for OCR
AWS TextractUS$0.0015 per page for the first million pages, then US$0.0006 (example: US West region)AWS may store inputs and use them to improve Textract and other AI services unless you opt out via an AWS Organizations opt-out policy; regions include Frankfurt and Ireland
Azure Document Intelligencesee pricing pageinputs and results are stored for 24 hours after the analysis and then deleted automatically; processing in the resource’s region

Sources: Google pricing and Google data usage, AWS pricing and AWS FAQ, Microsoft Learn. Prices and terms change; check them before deciding.

On privacy: sending documents containing personal data to a cloud service usually requires a data processing agreement – more in File converters & GDPR. With AWS Textract you should also check whether the opt-out for the use of your content is in place.

Which solution for which case?

  • Confidential documents: Tesseract on your own hardware; the data never leaves your system. Good preprocessing gets the most out of clean sources.
  • Phone photos, difficult sources, large volumes: compare cloud services on your own test set – with a data processing agreement and clarified data use.
  • Historical prints in Fraktur: test Tesseract with the Fraktur model.
  • Combination: recognise documents locally first and only check or reprocess uncertain results.

Text recognition with wandlio

With Convert image to text and Convert PDF to text you extract text from images and PDFs. Both converters run on our server: the file is transferred encrypted, processed in Germany and deleted right after the conversion. For company documents containing personal data, what is said above about processing on behalf applies.

Conclusion

There is no single “most accurate OCR”: the result depends on the source, language, preprocessing and engine. If you have to decide, measure with your own documents and the character error rate. Tesseract is the obvious choice when documents must not leave your own system; cloud services are an option once the contract and data use are settled.