An image goes in
A scanned PDF, a photo taken with a phone or a digitised copy. Pixels with no text behind them.
Optical character recognition, OCR, is the technique that turns the image of a document into text: a photographed invoice or a scanned PDF become letters and numbers a program can search and copy. This page explains how it works, what comes out of an OCR, which documents it reads best and where its job ends.
An image can be seen. Text can be searched, copied and added up. OCR turns the first into the second.
When an invoice is scanned or photographed, the result is an image: a grid of coloured dots that means nothing to a program. You cannot search for an amount or copy an invoice number. Optical character recognition, OCR, goes over that image, locates the areas with text and recognises each letter and each digit.
The result is text with position: which words are on the page and where they are. It is the first step of any document digitisation. What comes next, knowing which of those texts is the supplier, which the date and which the total, is no longer recognition: it is interpretation.
A scanned PDF, a photo taken with a phone or a digitised copy. Pixels with no text behind them.
It cleans the image, locates the lines of text, separates the characters and recognises each one.
Letters and numbers with their position on the page, ready to search, copy or pass on to the next phase.
Four stages, from image to text. Each one corrects what the previous one could not resolve.
| Stage | What it does | What it solves |
|---|---|---|
| Image preparation | It straightens the page, corrects the skew, raises the contrast and removes marks and shadows. | A skewed or poorly lit document becomes legible before anything is recognised. |
| Text location | It separates the text from the background and finds the blocks, lines and words. It tells a table from a paragraph and a stamp from a logo. | That the amounts column does not get mixed up with the quantities column. |
| Character recognition | It compares each shape with what it has learnt from millions of letters and digits in different typefaces and decides which character it is. | That an 8 is not read as a B and a 1 is not confused with an l. |
| Text with position | It returns the text ordered by lines, with the coordinates of each word on the page. | That the next phase knows a number sits next to the word total or in the header. |
Accuracy depends on how the document comes in. Improving the source solves more than correcting the result.
The text is already embedded in the file. OCR has nothing to recognise.
It needs recognition. With a clean scan, in black and white and not skewed, it reads well.
Sensitive to framing, lighting and shadows. The quality of the photo is what most affects how much has to be corrected afterwards.
The worst case: the original has already lost information. Thermal paper fades with time and heat.
Four things help with a photo: even light, because a shadow over half the page takes whole lines with it; flat paper, because a folded document distorts the numbers; all four edges in the frame, because if the foot is cut off the totals are lost; and a sharp photo, because a blurred one means typing in what cannot be read.
Dijit's OCR is trained on commercial documents, and the generative AI interprets what the OCR reads: what each piece of data is, line by line.
OCR delivers words and numbers. Turning them into the fields of an invoice is another job.
The generative AI decides that the nine-digit number next to the company name is the tax ID, and that the figure at the foot is the total and not a page number.
It is checked that net plus taxes gives the total, that the lines add up to the net and that the document is not a repeat. The result is the document's status.
The expense account, the supplier account and the VAT sub-accounts are assigned based on what was done before with that issuer.
The data goes to the accounting software or the ERP by direct posting or by file, or to an Excel file with whatever columns are needed.
What OCR does, what AI does and how they read a document together.
What it is, the methods that exist and which data is extracted.
From paper or PDF to data, in under 3 seconds per page.
OCR as a service, with nothing to install.
The four phases of capture with AI and what accuracy depends on.
The five steps, from the document's intake to the accounting software.
It is the technique that turns the image of a text into actual text. A scanner or a camera produces an image made of pixels. OCR, optical character recognition, locates the lines, words and letters in that image and returns the text with its position on the page.
Scanning produces an image: it can be seen, but not searched or copied. OCR turns that image into text. A scanned PDF without OCR is a photo; with OCR, it is a document in which you can search for a word or an amount.
Text with position: each word and each number, and where on the page they are. OCR does not know what each thing is. For a program to know which is the supplier, which the date and which the total, one more step is needed, data extraction, which today is done by generative AI.
A PDF generated by the issuer's software already carries the text embedded and needs no recognition. A clean scanned PDF reads well. A photograph depends on framing, light and shadows. A faded thermal receipt or a degraded photocopy is the worst case, because the original has already lost information.
Yes, with conditions. Accuracy on handwriting depends on the handwriting itself, the format of the form and the quality of the digitised copy. Handwritten job sheets and production sheets are handled with prior tuning on real documents from the business.
Because it returns words and numbers without knowing what they are. A nine-digit number next to a company name is a tax ID, and the figure at the foot is the total and not a page number, but that is decided by interpretation, not recognition. That is why OCR is combined with generative AI, which interprets each piece of data by its context with no templates per supplier.
Up to 99 % accuracy on good-quality PDFs and photos, in under 3 seconds per page on files under 3 MB. On photos four things help: even light, flat paper, all four edges in the frame and a sharp photo.
The entry plan costs €40 a month for 100 credits, with no commitment. One credit is one page. The free trial is 14 days and 20 credits, no card.
14 days and 20 credits. No card, no commitment and nothing to install.