What is OCR Used For? Everything You Need to Know

Last update:

October 25, 2024

5 minutes

Invoices, purchase orders, delivery notes, contracts, quotes, receipts, bank statements, certificates... When you have documents in PDF or image format, the data is "trapped" and unusable for the business. However, thanks to OCR software, you can convert your unstructured documents into structured information, saving you time in your operations.

With generative AI, OCR technologies have made significant advancements.

Traditional Methods: Machine Learning & Supervised Learning

OCR allows for the processing of a digital image to extract textual data, which can include enhancements (font, bold, titles, layout). Traditionally, OCR analysis relies on several layers of processing:

  1. Image Pre-analysis: The image definition is improved using filters; the image is straightened and cropped.
  2. Text Segmentation: Each block of text is located on the image relative to others.
  3. Character Recognition: Each character is compared to a library of shapes for identification, especially using neural network analyses.
  4. Recognition of Forms, Tables, and Associated Values: This is notably available for OCRs like Amazon Textract.
  5. Post-processing: Based on statistical rules, errors are eliminated.

However, there are two limitations to supervised learning:

  1. Lack of Language Understanding: The machine does not consider the meaning of the extracted words, which affects the quality of extraction. More complex documents (e.g., quotes or contracts) often yield errors.
  2. Exception Management: As the learning is done on a limited number of documents, there are often rare cases that the AI has not yet encountered.

The Revolution of LLMs: Precision and Customization

OCR primarily relied on supervised learning: machines were trained by manually labeling results on images. Now, with the advent of LLMs, learning is unsupervised. This means machines learn generically, without the need for precise labeling. The results are significantly better, with increased accuracy and the ability to process complex documents without the intensive human intervention previously required.

Comparison of Computer Vision & LLMs

Here’s a comparative table of performance differences between OCRs based on computer vision and those based on LLMs. The document processing technology Koncile combines the best of both to achieve optimal results.

Logo Logo
Computer Vision LLM (visual input)
Character Detection Best
Mature technology
Best results
Best
Mature technology
Best results
Text Understanding Non-existent or absent Best
Excellent for linking data to its category (e.g., “Mr. Dupont” for “Name”)
Layout & Table Consideration Errors when tables are complex Best
Excellent for capturing the meaning of titles/subtitles, hierarchy of information

PDF, JPEG, PNG, Scanned or Photo Documents: What are the Differences?

Searchable PDF

Your PDF file was created by software, allowing you to select text within the document. This is referred to as a “searchable” PDF. Verdict: In this case, character recognition will not be necessary as the plain text already exists in the file. However, the “layout” must be captured to prioritize the information.

Scanned PDF from Paper Document

The PDF file does not contain textual information. The OCR software must perform character recognition and layout detection. The file type (PDF, PNG, or JPEG) is generally indifferent for processing.

Photo Document

Similar to a scanned PDF, character recognition and layout steps are necessary. Be aware, there is a greater risk of errors.

Electronic Format or EDI

For invoices, typical formats like "Invoice-X" are PDFs attached to an XML file. The information is then directly usable in a database. However, the PDF file may often contain more information than the XML file, particularly line-by-line invoice information.

Document with Handwriting

Detection of signatures currently yields very good results. Handwriting character recognition varies; uppercase letters are well captured, but cursive writing may lead to errors.

What Documents Can Be OCRed?

To answer this question, two criteria should be closely examined:

  1. Document Variability: If documents always contain the same information in the same format, capture will be easier.
  2. Document Length: Short documents are easily processed; as document size increases, confusion among various pieces of information can occur.

Short Documents with Relatively Standardized Information

  • Passport
  • ID card
  • Business card
  • Driver’s license

Short Documents with Variable Formats and Repeated Information:

  • Invoices
  • Purchase orders
  • Registration certificates
  • Delivery notes
  • Resumes
  • Pay slips

Long Documents Composed of Multiple Parts

  • Contracts
  • Medical prescriptions & documents
  • Expert reports
  • Customs documentation
  • Tax documents
  • Real estate files

What Information Can Be Captured in a Document?

OCRs provide a standard list for each type of document. With LLMs, you can now go further by defining the fields that make sense for your use case. The Koncile platform allows you to specify fields to extract in a no-code manner. To improve accuracy, it may be useful to indicate an example of the desired result.

Test a trial version and compare results with traditional OCRs.

What are the Costs of OCR?

The cost of OCR can vary from 1 cent to 20 cents per page.

There are also free libraries available for character extraction, such as the Tesseract library, now sponsored by Google, or the open-source library GOCR written in C, which works on Linux, Windows, and macOS.

What is the Average Accuracy of an OCR?

OCR accuracy varies by software provider. Currently, line-by-line extraction remains a challenging point.

Discover our complete comparison of different OCR solutions.

What is the Processing Time for an OCR?

Processing time can range from a few seconds to 1 minute, depending on the type of OCR used.

Processing time is influenced by the complexity and length of the document and the resolution of the image. Multi-processing approaches, including text detection and LLMs, may extend processing time while improving overall accuracy.

Try Koncile today

O

T

Mastering Table Detection and Extraction in Documents

This article presents methods currently used to extract tables from scanned documents.

Practical guide

10/10/2024

F

The 8 Essential Features for Choosing the Right ERP for Construction

Article presenting a list of 8 interesting features to have in your ERP if you work in the construction sector.

Practical guide

9/10/2024

&

Supplier Invoice Control for Construction Companies

With technology, automate the checks of your supplier invoices.

Practical guide

8/10/2024