Dijit.app
AI and OCR

Artificial intelligence and OCR: reading a document together

OCR recognises the characters of a document. Artificial intelligence understands what they mean. They are two different technologies and both are needed to turn an invoice or a packing slip into data without typing. This page explains what each one does, why templates are no longer needed, what accuracy depends on and what a person still decides.

  • OCR recognises
  • AI interprets
  • No templates per supplier
  • Accuracy depends on the original
Two people from the administration team go over a paper supplier invoice, the document OCR and AI turn into data

What OCR does and what artificial intelligence does

Two different jobs on the same document. One sees letters; the other understands what they say.

OCR, optical character recognition, turns the image of a document into searchable text. It knows there is a nine-digit number in one corner and an amount at the foot. What it does not know is what they are: with OCR alone you would get a jumble of words and numbers without knowing what each one is.

Generative artificial intelligence does the second part. It reads that text as a person would: it understands that the nine-digit number next to a company name is a tax ID, that the figure at the foot is the total and not a page number, and that each row of the table is an item with its quantity and price.

OCR

It recognises characters: it turns the document's pixels into text.

Generative AI

It interprets the text: it says which is the supplier, which the date and which the total.

The two together

The document comes out as checked fields, ready for the accounting software.

From typing to templates, and from templates to generative AI

Three ways of turning a document into data. The third is the one that makes the template unnecessary.

Typing

A person looks at the paper or the PDF and types each value into the software. It is slow, error-prone and leaves no trace of where each figure came from.

OCR with templates

OCR recognises the text and a template says where each supplier prints each value. One has to be prepared per supplier and redone when the document layout changes.

OCR with generative AI

AI interprets the text by its context. The system does not need to know in advance where each supplier prints its data, so the first document from a new supplier is read just like the hundredth.

How it is read

The four stages of reading with OCR and AI

From the file to the fields in under 3 seconds per page, on files under 3 MB. The result of the third stage decides whether the document needs a look from you.

1. Recognition

OCR turns the image of the document into searchable text. With this alone there would be a jumble of words and numbers without knowing what each one is.

2. Extraction

Generative AI interprets what each piece of data is: which of the texts is the issuer, which the date, which the net amount and what each line contains.

3. Validation

Internal consistency is checked: that net plus tax is the total, that the lines add up to the net, that the tax breakdown matches and that the document is not a duplicate.

4. Coding

The nominal codes are assigned from the company's history and the rules set up. The document is ready for the software.

What the accuracy of AI and OCR depends on

99 % accuracy on good-quality PDFs or images. What matters most is how the document comes in: improving the source solves more than correcting the result.

Source of the documentHow it readsWhat helps
PDF generated by the supplier's system The text is embedded in the file. It is the case that reads most accurately. Receiving invoices as PDFs by email, just as the supplier issues them.
Scanned PDF It needs recognition. It reads well with a clean scan. A black-and-white scan at normal resolution is enough for a business document.
Photograph Sensitive to framing, lighting and shadows. Even light, the paper flat, all four edges in the frame and no movement.
Thermal receipt or faded photocopy The hardest case: the original has already lost information. Reviewing the fields left flagged, with the original alongside.

What the system learns from the company's history

A document is not treated as if it were the first. Each correction reduces the work that follows: the review in month six is smaller than in month one.

Nominal codes

They are assigned from what was done before with that supplier. They are defined once and applied on their own.

Correction rules

The rules you create for a supplier apply to their later documents: the price per box, the discount in euros or two values in one box.

Units and agreed prices

Unit conversions and agreed prices stay linked to the item and the supplier.

What a person still decides

AI and OCR read, check and flag. Approval is always a person's.

The system does not fill in data that is not on the document. If a value is not shown or is not legible, the field stays empty and the document is flagged for review. An empty field is not a reading failure: it is the record that there was nothing legible there.

Nor does it decide for you. Each document comes out with a status that says whether it can be approved as it is or where to look, and it opens with the original alongside. The one who approves is a person, one at a time or in bulk.

  • Empty fields in view. What cannot be read is not made up: it is highlighted for you to complete with the original in front of you.
  • One status per document. Validations correct, check totals, check sum of items, check VAT, check date or missing fields.
  • Approve in bulk. You filter by the correct ones, select them and approve them in one go.
  • A warning does not block. A document with a warning can be approved if you confirm that the difference comes from the document itself.
Dijit

Dijit: specialised OCR and generative AI for your invoices and packing slips

Dijit AI does the work before your management or accounting software: it reads your invoices and packing slips, reviews them, cross-checks them, assigns the nominal code and leaves them ready for you. And when you ask, it answers with your data.

Dijit screen with the data read from a packing slip, the tax breakdown and the accounting classification, and the original document alongside
  • Ultra-accurate and ultra-fast. Up to 99 % accuracy on good-quality PDFs and photos, and under 3 seconds per page on files under 3 MB.
  • Invoices, packing slips, receipts and payslips. Each document type with its list, its fields and its checks.
  • Matching packing slips and invoices with AI. Each invoice, linked to the packing slips of its deliveries, with the differences in view.
  • To your software. a3, Contasol, Holded, Factusol, Cegid DIEZ, Aplifisa, Monitor Informática, Sage X3, SAP Business One, Business Central and more, with the nominal code set. Or custom Excel and API.
  • Data in the European Union. The models run on Microsoft Azure, on European servers. Your documents are not used to train models. GDPR.
  • Free trial. 14 days and 20 credits, no card. One credit is one page.

Frequently asked questions

What is the difference between OCR and artificial intelligence?

OCR recognises characters: it turns the pixels of a document into text. Artificial intelligence interprets that text: it understands that the nine-digit number next to a company name is a tax ID and that the figure at the foot is the total. OCR alone would return a jumble of words and numbers without knowing what each one is.

Are both needed, AI and OCR?

Yes. They are two different things and both are needed. OCR is the first stage, recognising the text. Generative AI is the second, the one that says what each piece of data is. Then come the validation of the amounts and the assignment of the nominal codes.

Do I need a template for each supplier?

No. With generative AI the system does not depend on templates per supplier: it does not need to know in advance where each one prints its data. If one supplier shows the price per box or the discount in euros, a rule is created once and their following documents arrive corrected.

How accurate is OCR with AI?

99 % accuracy on good-quality PDFs or images, in under 3 seconds per page on files under 3 MB. What reads best is the PDF the supplier's system generates, because the text is already inside the file.

Why does a photo read worse than a PDF?

Because in a photo the text has to be recognised, and recognition is sensitive to framing, lighting and shadows. Four things help: even light, the paper flat, all four edges in the frame and a photo with no movement. The hardest to read is the thermal receipt or the faded photocopy, because the original has already lost information.

Does the AI learn from my documents?

It learns from your company's history, within your account: the nominal codes you used with each supplier, the correction rules you created and the unit conversions and agreed prices. Your documents are not used to train AI models.

What happens if a value is not on the document?

The field stays empty and the document is flagged for review. The system does not fill in data that is not on the document or decide for you: it validates, flags, and approval is always a person's.

Where are the documents processed?

In Dijit, the models run on Microsoft Azure, on servers in the European Union. The documents are stored there and Dijit complies with the GDPR.

Free trial

Try Dijit's AI and OCR with your invoices and packing slips

14 days and 20 credits. No card, no commitment and nothing to install.

Two people from an SME's administration team check paper invoices in front of their laptops