What Is OCR, and When Does It Fail? (Hindi and English)
You photograph a notice, a marksheet or a page from an old typed file and want the words as editable text – to paste into a form, a Word file or a WhatsApp message. The technology that does this is called OCR, optical character recognition. It is genuinely useful, but it is also easy to expect too much from it. This guide explains how OCR works, why it handles English and Hindi differently, when it fails, and how to get much better results from the same phone.
In short: OCR turns a picture of printed text into real text. It works best on sharp, straight, evenly lit printed pages in the right language setting. Try it with Image to Text (OCR), or for Hindi PDFs, Hindi PDF to Word.
What OCR actually does
To a computer, a photo of a page is just pixels – it has no idea that some of those dark shapes are the letter "A". OCR software goes through a few stages:
- Clean-up: the image is converted to greyscale or black & white, and the background is separated from the ink.
- Layout analysis: the software finds blocks of text, then lines, then words.
- Recognition: each word or line is compared against a trained model of what letters look like in that language, producing the most likely text.
- Language checking: a language model nudges the result towards real words, which helps fix single wrong letters.
Crop Desk's OCR tools use Tesseract.js, an open-source engine that runs inside your browser. The language model is downloaded once and cached, and your image is not sent to a server.
English vs Hindi: why results differ
English printed text is made of separate letters in a small alphabet, so OCR engines have been trained on huge amounts of it and are generally accurate on clean pages. Devanagari is harder for machines:
- The shirorekha (the top line) joins letters into one connected shape, so the engine must split words differently.
- Matras and conjuncts – ि, ी, ु, ृ, half letters like क्ष or त्र – sit above, below or around the main letter. A small smudge can change one matra and the meaning of the word.
- Old fonts such as Kruti Dev were designed for printing, and printed pages from older presses are often less crisp.
So Hindi OCR usually needs a cleaner image, and the output needs a careful proof-read, especially for names, matras and numbers. For mixed pages – an English form with Hindi labels – choose the combined English + Hindi mode so both scripts are recognised.
Kruti Dev text is a special case
If a Hindi PDF was typed in Kruti Dev, the text inside it is not real Devanagari – it is English keyboard letters drawn with a Hindi-looking font. Copying it gives gibberish like "dzkspd". That is not an OCR problem; it is an encoding problem. Converting with the Kruti Dev to Unicode converter fixes it without OCR at all. Read the Kruti Dev guide for details.
When OCR fails – and what to do
| Problem | What you see | Fix |
|---|---|---|
| Blurry photo | Random letters, missing words | Retake with the phone steady, tap to focus, more light |
| Page photographed at an angle | Lines merge or break mid-word | Flatten it with the Document Scanner first |
| Shadows or uneven light | Text in dark corners is skipped | Use daylight, avoid your own shadow; try the Black & White filter |
| Wrong language selected | Hindi comes out as English nonsense, or the reverse | Choose Hindi, English, or English + Hindi to match the page |
| Handwriting | Very poor results | Expect to retype; OCR engines like Tesseract are trained mainly on print |
| Tables and columns | Columns mixed into one line | Crop each column or section and OCR it separately |
| Very small text | Numbers and matras wrong | Photograph closer, so the text is larger in the image |
| Stamps, watermarks, coloured backgrounds | Extra junk characters | Crop to the text area; use greyscale or Black & White |
How to get a good OCR result, step by step
- Light: place the page near a window in daylight, without direct sun.
- Angle: hold the phone straight above the page so the page edges look rectangular.
- Distance: fill the frame with the text you need. If you only need one paragraph, photograph just that paragraph.
- Straighten: run the photo through the Document Scanner and choose Black & White for printed text.
- Recognise: open Image to Text, pick the right language, and run it. For scanned PDFs, use PDF to Word with OCR, or Hindi PDF to Word.
- Proof-read: check every number, name, date and matra against the original. Never paste OCR output into an application form without checking it.
A real-world example
Imagine you need the text of a two-paragraph Hindi notice that someone shared as a photo in a group chat. The forwarded image is small and compressed, and the first OCR attempt misses several matras. Instead of fighting with that image, ask for the original, or photograph the printed notice yourself in daylight, straighten it, and select the Hindi model. The cleaner input makes a bigger difference than any setting in the OCR tool. Then read the output line by line against the notice, correcting names and numbers by hand.
What OCR is not good for
- Signatures and thumb impressions – these are images, not text, and should stay images.
- Legal accuracy – OCR text is a convenience copy. For official purposes, the original document or a certified copy is what counts.
- Making a scan "smaller" – OCR adds a text layer; it does not compress the image. For size, see how PDF compression works.
Privacy
Documents you OCR often contain names, addresses, roll numbers and ID numbers. Prefer tools that process the image on your device. Crop Desk's OCR runs in your browser; only the engine and language model files are downloaded. Read more in why browser-only tools are safer.
Frequently confused terms
- Searchable PDF: a scanned PDF with an invisible OCR text layer behind the image, so you can search and copy.
- Unicode: the standard way computers store real Hindi characters. OCR output is Unicode, so it pastes correctly into modern Word, Google Docs and web forms.
- Text PDF vs scanned PDF: if you can select words in your PDF viewer, it already has text and does not need OCR.
Further reading: Unicode and UTF-8 for Hindi.
Frequently asked questions
Can OCR read handwriting?
Only sometimes. Engines such as Tesseract are mainly designed for printed text, so handwriting usually gives poor results.
Why does Hindi OCR make mistakes in matras?
Devanagari letters are joined by the top line and vowel signs sit around letters, so small blur or noise can change a sign. Use a sharp, well-lit, straight image and proof-read.
Why is text copied from my Hindi PDF gibberish?
It was probably typed in Kruti Dev, a non-Unicode font. Convert it with a Kruti Dev to Unicode converter instead of OCR.
Sources
- Tesseract OCR – User Manual
- Tesseract OCR – Improving the quality of the output
- Tesseract.js – project documentation (GitHub)
- Unicode Consortium – Devanagari code chart (U+0900–U+097F)
Sources checked on 23 November 2026. Official notices and orders change; the latest version on the issuing body's website is final.