Guide
What is OCR: how a computer reads text in photos and scans, tested on a notice, a receipt and a 1974 letter

OCR, optical character recognition, is how a computer turns a picture of text into text you can copy, search and edit. Below: how it works in plain words and what AI models changed. We also ran a test. We made four pictures with known text, a notice on a wall, a recipe card, a crumpled receipt and a typed letter in Turkish, put them through Tesseract, the best-known free OCR engine, and checked every character.

The short answer
OCR stands for optical character recognition. It is the step that turns a picture of text into actual text. To your phone, a photo of a page is millions of coloured dots. OCR finds where the letters are, decides which letter each shape is and hands you a string of characters you can copy, search, edit or translate.
Classic OCR does this in a fixed chain: clean up the image, find the lines and words, recognise each character, check the result against a dictionary. It is fast, free and excellent on clean printed pages. It struggles with photos taken at an angle, crumpled receipts, handwriting, unusual fonts and languages it was not set up for.
Modern AI models read text differently. A vision-language model looks at the whole picture at once and reads the text the way it reads everything else in the image, together with the layout and the meaning. That is why it can turn a receipt into a table or tell you what a notice on the wall asks you to do. Below we show both sides on four pictures with known text.
What OCR means, in plain words
Take a photo of a page and try to search it for a word. Nothing happens. For the computer, the photo contains no words, only a grid of pixels, each with three numbers for red, green and blue. The letter “a” is just a cluster of darker dots that happens to have a certain shape.
OCR is the translation from shapes to characters. The result is ordinary text: the same thing you get when you type, only produced from a picture.
You use it more often than you think:
- the “copy text” button on a photo in your phone's gallery;
- a banking app that reads a card number or a bill through the camera;
- a scanned PDF that you can search with Ctrl+F;
- number-plate cameras in car parks and postal machines sorting letters by the address.
The idea is old. Machines that turned printed letters into telegraph code or sound for blind readers were patented in the 1910s. In 1974 Ray Kurzweil founded a company that built omni-font OCR, reading print in almost any typeface, and used it in a reading machine for blind people (history on Wikipedia).
How classic OCR works, step by step

Clean up. The program straightens the page, evens out the light and usually turns the picture into pure black and white. A shadow from your hand or a fold in the paper can become a black blob at this step.
Find lines and words. It looks for rows of dark shapes, splits them into lines, words and characters, and decides the reading order: columns, tables, captions. Most layout mistakes start here.
Read characters. Each shape gets compared with what the engine learned. Old engines matched letters against stored templates of fonts. Modern ones use a neural network that reads a whole line at once.
Check words. The engine compares its guesses with a dictionary and a language model for the chosen language, which is why “clo5ed” turns into “closed”. It is also why picking the wrong language spoils the result, as you will see in test 4.
The best-known engine of this kind is Tesseract. It was written at Hewlett-Packard between 1985 and 1994, released as open source in 2005 and developed with Google's support from 2006. Version 4 in 2018 added a neural network that reads whole lines and brought support to more than 100 languages (Tesseract on Wikipedia). It is free and sits inside many apps that “scan to text”, so it is a fair stand-in for classic OCR.
The test: four pictures with known text
We made four pictures ourselves, so we know every character in them, and ran them through Tesseract 5.3.4 on 8 November 2026 with default settings and the English language pack, the way most apps use it. Then we compared the output with the original text character by character. The share of wrong characters is called the character error rate, CER: 1% means one wrong character in a hundred.
The four pictures are deliberately everyday ones: a notice in a building lobby photographed at an angle, a recipe card in a handwriting-style font, a crumpled shop receipt and a typewritten letter in Turkish, scanned in grey.
Test 1: a notice on the wall, shot at an angle

A notice like this is the most common reason to want text from a photo: you need the date, the time and the phone number in your calendar or your notes. The page is tilted, the light falls off towards the bottom and the last line is small and grey.
| On the notice | What classic OCR returned |
|---|---|
| Tel. 020 7946 0321 | Tel. 020 7949 0321 |
| on floors 4–7 is replaced. | on floors 4Tis replaced, |
| will be closed from 07:00 | Will be closeq from 07:00 |
| Thank you for your patience. — Elm Court Management, 6 November 2026 | 0 lene at ea |
CER: 11.5%. The date and the hours came through correctly, which is the good news. The bad news is the phone number: one digit changed, and the result still looks like a perfectly normal number. You would only notice when someone else answered the call. The small grey line at the bottom was lost completely, and one paragraph was split in the middle of “before”, because the engine read the page line by line.
Test 2: a recipe card in handwriting

This card uses a handwriting-style font, so it is easier than real handwriting: the letters are the same every time. It has the things that make a family recipe hard to digitise: fractions, a degree sign, and a word crossed out and replaced.
| On the card | What classic OCR returned |
|---|---|
| beat till pale | beat fill pale |
| 1 ½ cups flour | 1 V5 cups Hour |
| ½ cup milk (crossed out) sour cream | Ya cup mitk sour cream |
| — for Nora, 1998 | = for Nora, 1778 |
CER: 5.4%, the lowest of the three English pictures, and the most misleading one. A reader who trusts the number gets the wrong amount of flour, a recipe that seems to call for milk and sour cream at once, and a card that is two centuries older than it is. The engine has no idea that a line through a word means “ignore this”: for it, strikethrough is just a few extra dark pixels.
Test 3: a crumpled receipt

Receipts are where people most often want a table: item, quantity, price, total. This one has seven lines, one item bought twice, a discount and a total, printed on faded thermal paper with waves from being folded.
With default settings Tesseract returned the item names and lost every price: 0 of 10 amounts (seven item prices, the subtotal, the discount and the total). CER: 34.1%. The column of numbers on the right sat slightly lower than the names, and the engine decided it was a separate block of noise.
We tried again with the setting that tells it to treat the page as one block of text. The prices appeared and CER fell to 8.4%, but errors remained:
| On the receipt | Second try, one-block mode |
|---|---|
| OLIVE OIL 750ML 7.99 | OLIVE OIL 750M, 1,99 |
| CHEDDAR MATURE 400G 4.25 | CHEDDAR MATURE 4a9¢ 4 28 |
| TOMATOES CHERRY 1.75 | TOMATOES CHERR) 5 |
| MEMBER DISCOUNT -1.50 | MEMBER DISCOUNT 1.50 |
| TOTAL GBP 24.42 | TOTAL GBP 24.42 |
The total is right, the olive oil got six pounds cheaper and the discount lost its minus. Classic OCR does not know that a receipt has to add up, so it cannot notice that its own numbers do not.
Test 4: a typed letter in Turkish from 1974

A letter from a grandfather: typewriter font, slightly skewed, faded, small specks of dust, and Turkish letters that English does not have: ş, ğ, ı, ü, ö, ç and İ.
First we ran it with the English pack, as an app with default settings would:
| In the letter | English pack |
|---|---|
| Sevgili kızım Ayşe | Sevgili kazim Ayse |
| gelmeyi düşünüyoruz | gelmeyi distintyoruz |
| Gözlerinden öperim | Gézlerinden Sperim |
| Baban Şükrü | Baban Sikri |
CER: 12.6%. Then we switched to the Turkish pack, and the same scan came out at 2.1%: the letters were right, only a few stray marks remained, such as “Burâda” for “Burada”, “ötel” for “otel” and a dot after “ağacı”. Same picture, same engine, six times fewer errors. Classic OCR needs you to know the language in advance; a mixed page in two languages or a script it was not set up for is where it falls apart.
What the four tests show
The error rate is not the whole story. The recipe card had the lowest CER of the English pictures and the worst consequences. What matters is which characters are wrong: digits, names, dates and minus signs carry the meaning, and OCR treats them like any other character.
Layout matters as much as letters. The receipt was readable letter by letter, yet the default mode lost the column with the money. Tables, columns, small print in a corner and text on a curved surface are where the second step, finding lines, goes wrong.
Classic OCR reads, it does not understand. It cannot see that a word is crossed out, that a total does not add up or that “1778” is an odd year for a recipe written for someone called Nora. It gives you characters, and checking them is your job.
How AI models read text now
Over the past five years the field moved from a chain of steps to one model that sees the whole picture.
In 2021 Microsoft's TrOCR replaced the character step with a transformer, the same type of network as chat models, trained on huge amounts of printed and handwritten text. The same year, the Donut paper went further and called itself an “OCR-free” document model: it reads a receipt or a form and returns the structured answer directly, without a separate OCR stage.
In 2025 DeepSeek, which builds the default model of WAM Agents, published DeepSeek-OCR. The paper shows a page of text can be packed into far fewer image tokens than text tokens: with up to ten times fewer, the model still decoded the text with about 97% precision.
What this changes for you:
- Layout comes with the text. A vision-language model sees that a column of numbers belongs to the names next to it, so a receipt becomes a table, not two lists.
- Meaning comes with the text. You can ask “what do I need to do and when?” about the notice, “does the total add up?” about the receipt or “translate it” about the letter, in the same message.
- Language does not have to be chosen in advance. One model reads English, Turkish, Arabic and Cyrillic on the same page.
- Doubt can be reported. You can ask the model to mark words it is not sure about, which classic OCR does not do in a readable way.
The flip side is worth knowing. A classic engine makes typos you can spot: “Hour” instead of “flour”. A language model may instead smooth a hard word into a plausible one. So for anything that matters, ask for the text “word for word, as written” and for unsure words to be marked, and check digits by eye.
Classic OCR or an AI model: which to use
| Your task | Classic OCR | AI model |
|---|---|---|
| Thousands of clean scanned pages, searchable archive | Fast, free, runs offline | Works too, costs more per page |
| One photo: a notice, a sign, a page of a book | Fine when the shot is straight | Reads the text and answers the question about it |
| Receipts, invoices, tables | Needs settings, often mixes up columns | Returns a table and can check the sums on request |
| Handwriting, old typewriter pages | Many errors | Trained on handwriting too; still check names and digits |
| Mixed languages on one page | One language pack at a time | Reads them together and can translate |
Getting text from a photo with your AI agent
In WAM Agents you send the photo, screenshot or scanned PDF to your agent in a Telegram chat and write what you need in the same message: the text word for word, a table, a short summary, a translation. On the default model the agent reads images with DeepSeek's own vision model, with OpenAI only as a fallback, and all of it is included in every plan with no keys of your own. On Pro you can attach your own Claude, and Claude then reads the picture itself. PDFs the agent reads itself, going through a large document in parts.
The useful part is what comes after the text. The same chat can turn a receipt into a table, compare an invoice with the contract or translate a menu. Our guides show it step by step: AI translator in Telegram: a menu photo, a voice note and a PDF, translated in one chat reads a menu photo in a foreign language, AI for documents: send a contract, get the risky clauses, then check the invoice against it works with scans of contracts and invoices, and AI for spreadsheets: send three Excel exports, get one Google Sheet for the team and three conclusions picks up where a receipt table ends. For a scanned manual in another language, see Translate a PDF with AI: an English manual into Spanish, same layout, plus a Word file and a wall checklist.
How to photograph text so it reads well
These habits help any reader, classic or AI, and they all follow from the four tests.
Shoot straight on. Hold the phone parallel to the page. An angle makes letters at the far edge smaller and squeezed, which is where the wrong digit in the phone number came from.
Light from the side, no flash. Flash leaves a glare spot that wipes out a few words, and your own shadow does the same from above.
Flatten the paper. A receipt pressed under a book for a minute reads better than any setting. Waves bend the lines, and bent lines are what lost the prices.
Crop to the text. The picture is shrunk before it is read. If the part you need is a small table in a corner, crop it first so the letters get more pixels.
Say the language. With classic OCR, pick the language pack. With an AI agent, it helps to mention it anyway: “the letter is in Turkish, keep ş, ğ and ı”.
Ask for doubt. “Mark any word you are not sure about” and “keep the text exactly as written” cost nothing and make the result honest.
Check the digits. Phone numbers, sums, dates and account numbers are worth a second look whatever read them.
Where your photo goes
On the default model the photo is read in DeepSeek's infrastructure in the People's Republic of China; you agree to that at onboarding. OpenAI is used only as a fallback for vision, and all outside services are listed on the Subprocessors page. With your own Claude on Pro, the image goes to Anthropic under your own subscription. Under the Terms (9.4), WAM Agents does not use your content to train AI models.
Inside the agent, the local copy of a photo you send is deleted after 24 hours. The caption you wrote stays in the message log, which keeps the last 180 days of each chat. If the agent saved the recognised text or a file into its working folder for a task, that copy stays until you delete it, and you can ask the agent to remove it.
How much it costs
Reading a photo or screenshot costs 1.5 on the default model. The agent's reply is billed as text: the first reply of a new session costs 3–4 , because the agent reads its whole setup, and later replies in the same conversation cost a fraction of a magnet. Four pictures like the ones in this article, with a question about each, fit easily into the Free plan.
Free gives 200 in the first month and 100 a month after that, no card. Pro is $13.90 a month for 400 , or $1.39 for the first month if you subscribe within your first 7 days. With your own Claude attached on Pro, the image is read by Claude on your subscription, without a separate magnet line for it. Details are on the pricing page.
Messages worth copying
Copy the text from this photo exactly as written, word for word, keeping the paragraphs. Then one line: what do I need to do and when?
Type out this handwritten card exactly as written. Mark any word you're not sure about, and tell me if something is crossed out.
Turn this receipt into a table: item, quantity, price. Then check whether the total adds up.
This scan is in Turkish. Type out the text exactly, keeping every letter like ş, ğ and ı, then translate it into English.
Send your agent a photo of the paper that has been lying on your desk the longest and ask for the text.
Try it with your own agent
Free, no card. The agent starts working in the chat straight away.
Create your AI agentQuestions
What does OCR stand for?
Optical character recognition. Optical, because the program works from a picture, a photo or a scan. Character recognition, because it decides which letter, digit or sign each shape on that picture is, and gives you the result as plain text you can copy, search and edit.
Is OCR the same thing as AI?
OCR is the task, AI is one way to do it. Classic OCR engines like Tesseract use neural networks for the character step but work in a fixed pipeline: clean the image, find lines, read characters, check a dictionary. Modern vision-language models read text as part of the whole picture and can also explain what it means, turn it into a table or translate it.
Can OCR read handwriting?
Neat handwriting, often yes, messy handwriting, much worse. In our test Tesseract read a recipe card in a handwriting-style font with 5% wrong characters, but two of the mistakes changed the meaning: “1998” became “1778” and a crossed-out word was typed as if it were part of the recipe. Always ask for unsure words to be marked.
How accurate is OCR?
On a clean scan of printed text, close to perfect. On phone photos, receipts and old typewritten pages it drops fast. With the default English pack, the share of wrong characters in three of our pictures ranged from 5.4% to 12.6%, and on the crumpled receipt it was 34.1%: the default mode lost every price there. The Turkish letter came out at 2.1% with the Turkish pack. One wrong digit in a phone number is still a wrong number, so check figures by eye.
How do I make a scanned PDF searchable?
Run OCR on it: the program puts an invisible text layer under the page image, so search and copy start working. Many scanner apps and PDF editors do this. If you only need the text, send the scan to an AI agent and ask for the text word for word.
How much does it cost to get text from a photo with WAM Agents?
Reading a photo or screenshot costs 1.5 on the default model. The first reply of a new session costs 3–4 , later replies in the same conversation cost a fraction of a magnet. Free gives 200 in the first month and 100 a month after that; Pro is $13.90 a month for 400 .


