How an image becomes text: the stages of OCR, classic OCR vs AI recognition, searchable PDFs and what affects accuracy.
OCR (optical character recognition) is technology that turns an image of text into real text: a scan, a photo or an image-only PDF becomes words you can copy, search and edit. OCR is built into Google Docs, Word, Adobe Acrobat, iPhone and Android, so for a single page the free tools are usually enough. For tables, document fields and hundreds of documents you need AI-based recognition that understands the structure of a document, not just the letters.
What OCR means in plain words
To a computer, a scanned invoice or a photo of a book page is just a picture — a grid of coloured dots. You cannot search it for a word or copy a paragraph from it. OCR "reads" those dots and gives you back text you can work with.
What you get as output:
- plain text — to paste into an email, Word or a chat;
- a Word document with paragraphs kept (formatting does not always survive);
- a PDF with a text layer — it looks like the scan, but search and copy work;
- text with the coordinates of every word — for software that processes documents further.
How OCR works
The tools differ, but inside almost all of them go through the same stages.
- Image preparation. The software straightens the skew, removes noise and dark scanner edges, and converts the image to black and white so the letters stand out from the background.
- Layout analysis. The page is split into blocks: text columns, headings, tables, pictures, stamps. Then blocks are split into lines.
- Line recognition. Older systems compared each letter with templates. Modern engines, such as Tesseract from version 4, read a whole line with a neural network: it sees the context and confuses similar characters less often.
- Correction. Dictionaries and language models suggest that "lnvoice" is really "Invoice".
- Assembling the result. The text is put in reading order and saved in the chosen format.
The weak spot of classic OCR is step two. Tables, columns, text overlapped by a stamp — this is where lines stick together and numbers from different columns end up on one line. Even the Tesseract documentation openly says it has known problems with tables.
Classic OCR vs AI-based recognition
|
Classic OCR |
AI-based recognition |
| What it returns |
the text of the page |
fields, tables, document type |
| Tables |
often fall apart |
read row by row |
| Understanding |
none: "1,500.00" is just characters |
knows it is an amount, not a quantity |
| New document layout |
no change, but a person sorts out the structure |
usually works without setup |
| Typical error |
mixes up 0 and O, 1 and l, drops characters |
may confidently "invent" a plausible value |
Classic OCR answers "which letters are on this page". AI-based recognition answers "what document is this and what does it say": supplier, number, date, line items, total. That is exactly why AI needs checks: when a model is wrong, the error looks plausible and is hard to spot by eye. The difference is shown on Ukrainian delivery notes («видаткова накладна») in the article «Recognizing delivery notes: OCR or AI».
PDF OCR: what a searchable PDF is
There are three kinds of PDF:
- Text (born-digital) — created by software: exported from Word, an accounting system, a bank. The text is already there, no OCR needed.
- Scanned — every page is only an image. Search does not work, text cannot be selected.
- Searchable PDF — a scanned PDF to which OCR has added an invisible text layer under the image. You see the original scan, but Ctrl+F and copying work.
This is usually what people mean by "PDF OCR". Such files are convenient for archives: the document looks exactly as before, and you can find the right contract by a word.
One trap: the text layer is the result of recognition and may contain errors. The scan shows "125,000", but "126,000" is what gets copied. For important numbers, check against the image. How to tell whether a PDF has a text layer and how to add one — in the article «How to extract text from a PDF».
Where OCR is used
- Office work and records — digitizing archives, searching scanned orders and letters.
- Accounting — invoices, delivery notes and acts that have to go into the accounting system.
- Legal — searching contracts and case files, comparing versions.
- Logistics — waybills, CMRs and fuel receipts sent from a driver's phone.
- Education — lecture notes, photos of a whiteboard, textbook pages.
- Accessibility — screen readers read text from photos aloud for people with visual impairments.
- Banks and public services — reading ID documents and payment details.
OCR accuracy and what it depends on
Vendors like to say "99% accuracy". But 99% of characters means roughly one error per hundred characters — 20–30 errors on a dense A4 page. For an article, that is minor. For an IBAN or an amount, it is a problem.
What affects the result the most:
| Factor |
What happens |
What to do |
| Resolution |
small letters merge |
scan at 300 dpi or more; in photos, fill the frame with the page |
| Lighting |
shadows and glare "eat" letters |
even daylight, no flash |
| Skew and perspective |
lines break |
shoot parallel to the page or straighten it in a scanner app |
| Font |
decorative and tiny fonts read worse |
for your own documents, plain fonts from 10 pt |
| Tables |
columns get mixed |
a tool that understands table structure |
| Stamps and signatures |
cover numbers |
check fields under a stamp separately |
| Handwriting |
classic OCR is almost helpless |
models trained on handwriting, and always a manual check |
Google's Drive help, for example, recommends text at least 10 pixels high, a right-side-up page and even lighting. Detailed tips on photographing a document are in «How to get text from a photo».
Free OCR tools
| Tool |
Where |
Limits |
| Google Docs |
via Google Drive: Open with → Google Docs |
file up to 2 MB, tables and columns are usually lost |
| Google Lens |
phone, Chrome, google.com |
handy for a fragment, not for multi-page documents |
| Microsoft Word |
opens a PDF and converts it to a document |
best for mostly-text files; layout and tables may shift |
| OneNote |
Copy Text from Picture |
desktop app; text without structure |
| Adobe Acrobat online |
free OCR PDF in the browser |
sign-in needed to download; output is a searchable PDF, not Word |
| Live Text (iPhone) |
Photos and Camera |
iPhone XS/XR or newer, iOS 15+ |
| Tesseract |
open-source engine |
command line, no interface; Ukrainian via the ukr language model |
Step-by-step guides: online text recognition, text from a photo, text from a PDF.
When free OCR is not enough
Free tools are good at giving you text. But often you need data, not text:
- the item table from a delivery note in Excel, with columns for name, quantity, price and amount;
- document details — company code, IBAN, number and date — as separate fields;
- dozens or hundreds of documents a day, not one file;
- confidence that the numbers were read correctly.
In these cases the OCR text still has to be sorted by hand. And that is exactly where a single wrong digit costs the most.
How to automate document recognition
AiParsy recognizes documents of any type — delivery notes, invoices, acts, contracts, bank statements, as well as any text from a photo or scan. You get not just text but fields and tables that can be exported to Excel, Word, PDF or JSON. The service checks line and total arithmetic, the check digits of Ukrainian company and tax codes (ЄДРПОУ, РНОКПП) and IBANs, and looks for duplicates. The original is always next to the data, and every field is visible on the scan. Documents can be forwarded by email, sent to a Telegram bot or scanned with the Doc Scan phone app. Try it on your own files: 50 pages free every month.

Questions and answers
What is OCR in simple terms?
A program that looks at a picture of text and turns it into text you can copy, edit or search.
What is PDF OCR?
Recognizing a scanned PDF. The result is usually a PDF with an invisible text layer: it looks like the scan, but search and copy work.
Does OCR support Ukrainian?
Yes. Google Docs detects the language automatically, Live Text on iPhone supports Ukrainian, and Tesseract has a ukr language model. Quality on Cyrillic varies between tools, so test on your own document.
How accurate is OCR?
On clean printed text there are few errors; on angled photos, small print and handwriting there are many more. What matters more than the advertised percentage is whether you will notice an error: numbers need automatic checks or a comparison with the original.
How is OCR different from AI recognition?
OCR returns the text of a page. AI understands the structure: finds fields, reads tables, identifies the document type. Its errors are more plausible, though, so automatic checks are essential.
Is there free OCR online?
Yes: Google Docs, Google Lens, Adobe Acrobat online and other services. Before uploading documents with personal or business data, check where they will be stored — see «Online text recognition».