Supply Chain
Matthieu

The OCR showdown: our verdict

Partager l’article :

This article explores OCR (Optical Character Recognition), a technology for extracting data from images. We are comparing tools such as Google Cloud Vision, Amazon Textract, and Tesseract. Cloud solutions dominate; while Tesseract is free, it can be less effective for handwritten text or low-quality documents.

What is OCR?

Optical Character Recognition (OCR) technologies are methods for extracting data from unstructured image-based documents. They are part of the broad family of computer vision algorithms and are all around us in our daily lives. For example, OCR enables the visual identification of credit cards, bank checks, invoices, and expense reports.


OCR tools have become highly efficient, offering significant time savings and improved quality. As a result, their use is growing across all economic sectors.

In this article, we provide a comparison of three OCR tools that we have tested during our projects at Aqsone:

State of the art

Optical Character Recognition is not a new subject, with the first applications appearing as early as the beginning of the 20th century. Early OCR use cases aimed to detect Morse code, Braille, or typewritten characters.

Over the years, and with the advent of the first CPUs, larger-scale projects emerged in fields such as postal services, customs, and the military.

In 2005, Hewlett Packard and the University of Nevada released the open-source OCR engine Tesseract , thereby expanding the use of these technologies.

In 2013, the MNIST database was published, containing 60,000 images of handwritten digits in black and white. It is a dataset widely used in machine learning for computer vision tasks.

‍

‍

Finally, recent years have seen the emergence of cloud-based OCR models such as Google Cloud Vision or Amazon Textract.

The current state of the art is primarily composed of:

  • Paid software that is highly specific to certain tasks (expense reports, mail, technical documents). It is difficult to estimate their performance and generalize them to other tasks.
  • Open source solutions, such as Tesseract, a still quite popular solution that offers the advantage of being completely free with relatively good performance.
  • Cloud OCR models with the two main players being Google Cloud Vision and Amazon Textract. They offer:
    • better performance in character and language recognition,
    • a variety of complex models,
    • the ability to train these models on a very large volume of data,
    • the ability to be coupled with other interesting Natural Language Processing (NLP) components specific to GCP and AWS environments.

Unless you want a 100% free solution, cloud providers are likely the current market leaders.

Comparison of OCR solutions

The table below summarizes the comparison of the different OCR solutions. The criteria we highlight are based on the business use cases we have encountered and have generally been decisive in selecting one OCR solution over another.

Use cases:

‍

Conclusion

In conclusion, Amazon Textract and Google Cloud Vision are two solutions that offer very similar capabilities and performance. Their pricing is also very close, as you should expect to pay $1.50 per 1,000 units to use the basic OCR functionality, subject to discounts for high volumes.

Google Cloud Vision will be particularly easy to use for GCP users and also has the advantage of being able to integrate with other Google Cloud services. However, its configuration can be complex for those new to the platform. Amazon Textract provides a drag-and-drop interface that makes it even easier to use.

In terms of performance, GCV seems more effective than Textract for handwritten text detection. However, GCV falls short on table extraction, as the text is detected as standard text rather than in a table format.

Tesseract has the advantage of being free and requiring no special configuration. It is easy to use, either via the command line or the Python library pytesseract.

Regarding performance, Tesseract is effective with high-resolution data. Its performance drops with low-quality data or handwritten text. Table extraction is possible but can be complex to implement and is also highly sensitive to document quality.

It remains an interesting solution due to its accessibility and effectiveness with certain specific data formats.

Un accompagnement de A à Z par nos experts dans le but d’une intégration de solutions IA sur-mesure.

Lorem ipsum dolor sit amet consectetur. Ipsum penatibus viverra feugiat amet varius pharetra porta risus lectus. Turpis enim massa non tincidunt in faucibus.

Découvrez plus d’articles

No items found.
Bird with red, yellow, and black feathers in flight, wings spread, against a blurred background of greenery.

Can you chat with your company database just like you do with ChatGPT?

Lire l’article
No items found.

TPOT vs. Auto-sklearn: Comparing Two AutoML Libraries

Lire l’article
Deep Learning

Strengthening convolutional neural networks (CNNs) using capsules

Lire l’article