Vezi pagina în română

IT Glossary

What is OCR (optical character recognition) and how does it work

OCR (Optical Character Recognition): turning images of text — scans, photos, PDFs — into text and data software can process.

7
sections
5
questions answered

OCR (Optical Character Recognition) is the technology that reads text from an image (a scanned document, a phone photo or a PDF without a text layer) and turns it into characters a computer can search, copy and import into other programs. Modern AI-driven systems do more than read letters: they understand document structure. They know the number next to "Total due" is the invoice amount, and they extract the supplier, tax ID, due date and line items. A well-designed flow promises triage, not perfect accuracy: certain items pass automatically, uncertain ones ask for one validation click. The number that matters commercially is net hours saved after validation, not the raw recognition rate; how many hours you save is measured in a pilot on your own documents.

Common use cases are expense receipts, delivery and transport documents in logistics, HR files, a historical archive made searchable by content, and reading identity documents at onboarding. One Romanian example you may already be paying for: the SmartBill mobile app pre-fills an expense from a photo of a receipt or invoice (article 934 on ajutor.smartbill.ro). We cite it as a feature your own software may already have, not as an endorsement.

Why it matters for your business

Retyping structurally eliminated

Invoices, receipts and delivery notes enter your systems straight from a scan or photo — hours of manual copying become minutes of validation.

The archive becomes searchable

OCR-processed scans are found by their content — the contract with the exclusivity clause surfaces via search, not by leafing through binders.

Fewer input errors

A machine-read figure validated by a human beats a tired late-Friday keystroke — and uncertain items get flagged, never smuggled through.

How OCR works: from image to data

An OCR pipeline usually has four steps. First, image preparation: straightening a crooked page, adjusting contrast, removing noise. Second, layout detection: where the text blocks, tables and columns are. Third, the recognition of characters and words, done today by neural models trained per language.

The fourth step is automatic post-correction with dictionaries and format checks (a tax ID, a date, an amount). For invoices a fifth step adds field extraction into structured data. Free engines that run locally exist too: Tesseract (Apache 2.0 licence, github.com/tesseract-ocr/tesseract) has a Romanian model, the file ron.traineddata in tesseract-ocr/tessdata.

OCR, ICR, OMR and IDP: what is the difference

OCR reads printed text. ICR (Intelligent Character Recognition) reads handwriting: it makes more errors, so it needs more validation. OMR (Optical Mark Recognition) detects marks, for example ticked boxes on forms and tests.

IDP (Intelligent Document Processing) is OCR plus document classification, field extraction and validation. Invoice parsers are IDP: they do not return a long block of text but pairs such as "supplier", "total", "due date".

Want an estimate for your project?

Message us on WhatsApp. We reply the same working day, and the first 30-minute call is free.

Book a free call

OCR on Romanian documents: diacritics and archives

Older documents and fonts often use s and t with a cedilla (U+015F, U+0163) instead of ș and ț with a comma below (U+0219, U+021B), the correct form in Romanian. To a person they are the same letter; to a search they are not. If the OCR output and the search do not treat them as identical, the word "înțelegere" will not be found in a 2010 scan.

For a searchable archive, choose Romanian as the recognition language and check that the output is a searchable PDF: the page image with an invisible text layer on top.

OCR after e-Factura: what is still left to read

According to the Romanian Ministry of Finance (mfinante.gov.ro, e-Factura page), sending B2B electronic invoices through the system became mandatory for reporting from 01.01.2024 and for invoicing from 01.07.2024, and B2C reporting from 01.01.2025. Invoices from Romanian suppliers therefore arrive as XML in SPV: you read the XML, you do not OCR the PDF copy. Other EU countries are phasing in their own e-invoicing mandates.

OCR stays useful for what does not arrive as XML in SPV: many documents remain on paper or PDF, such as expense receipts, delivery notes, CMR transport documents, contracts, HR files and the archive from before 2024.

For a company: when OCR pays off and what the risks are

Three tiers, in this order: features already included in your accounting or expense software (check first, you may be paying for them), cloud services billed per page or document, and custom integration over APIs such as Google Document AI or Azure for high volumes and specific flows. The right pilot: one month of real documents through the candidate solution, measuring net hours saved.

There are two risks. A misread figure slipping through unnoticed, which is why a good flow flags uncertain items. And sensitive data sent to an external service: ask where documents are processed, how long they are retained and whether they feed any training.

Frequently asked questions

What does OCR stand for?

OCR stands for Optical Character Recognition: the technology that reads text from an image, scan or PDF without selectable text and turns it into editable, searchable text that other programs can process.

How much does OCR for invoices cost?

Does your accounting or expense software already include OCR? On 18.11.2026 Google Document AI lists USD 1.50 per 1,000 pages (Enterprise OCR) and USD 0.10 per document of up to 10 pages (invoice parser). A custom integration that extracts document data into your existing application costs roughly EUR 3,000–15,000, depending on document types and systems it writes to.

How well does OCR actually read invoices?

Printed invoices and native PDFs are read very well: extraction of the usual fields (supplier, tax ID, total, VAT, due date) is commercially mature. Faded thermal receipts and handwriting raise the exception rate, which the validation step absorbs. Invoices from Romanian suppliers have arrived since 2024 as XML in SPV, so they need no OCR.

Is OCR safe for documents containing personal data?

With the right choices, yes: services processing within the EU under a written contractual guarantee of non-use, or, for higher sensitivity, engines run locally on your own infrastructure, for example Tesseract. Ask the vendor where documents are processed, how long they are retained and whether they feed any training.

What is the difference between OCR and a searchable PDF?

OCR is the process of recognising text in an image; a searchable PDF is its result: the page image with an invisible text layer on top. A scanned PDF without OCR is just a picture: you cannot search it or copy text from it.