Invoices and receipts are the documents people want out of a photo, into a spreadsheet, an expense claim or accounts, and the worst documents to trust to OCR unchecked. The figures land in your records in seconds, and one of them may be quietly wrong: unlike a misread word, nothing about it looks wrong.
This guide explains why numbers are the highest-risk part of OCR results, names the traps, and gives a checking routine for the free Image to Text tool on Ovatly, which runs the Tesseract engine in your browser and never uploads your image.
Contents
- Quick answer
- Why numbers are the highest-risk output
- Trap 1: 0 and O
- Trap 2: 1 and l
- Trap 3: 5 and S
- Trap 4: decimal points and commas
- Trap 5: totals vs line items
- The checking routine
- Worked example: the counts habit
- Limitations and honest tradeoffs
- Common mistakes
- FAQs
- Conclusion
- References
Quick answer
Run the invoice or receipt through the Image to Text tool, then treat every figure as unverified. Compare each amount, quantity and total against the image, fixing mistakes in the editable result box. Add the line items up yourself and check the sum against the extracted total; a disagreement means a misread. When every figure matches and the arithmetic closes, copy the text or download it as a .txt file.
Why numbers are the highest-risk OCR output
OCR reads shapes, not meaning: the engine returns the character a shape most resembles. With words, you get accidental protection, because a misread letter usually looks off and your eye catches it. Digits get no such protection. A figure is a string of shapes with no context to betray an error: if a 5 is read as an S or a 0 as an O, the output still looks plausible. The swapped digit never announces itself, which is why the checking has to be deliberate rather than a skim.
Trap 1: 0 and the letter O
Zero and capital O are near-identical shapes in most fonts, and OCR has no context to separate them inside a code or reference number. A part number, invoice reference or account code can come back with letters where digits belong, or the reverse, and the engine guesses silently. Any reference string deserves a character-by-character check against the image.
Trap 2: 1 and the letter l
One and lowercase l are the second classic pair, sometimes joined by the capital I. In a price, a letter among digits is at least visible. The quieter version is in dates, serial numbers and codes, where a 1 read as an l changes the value without breaking the format, and in condensed receipt fonts the two shapes can be nearly the same stroke. Check this pair on every date and reference.
Trap 3: 5 and the letter S
Five and S share a shape close enough that a soft or low-contrast image swaps them freely. Inside a price, an S is obvious; the risk is the reverse direction in codes and references, and cousins of the confusion, a 5 coming back as a 3 or 8 in worn print. Prices on faded thermal receipts are the usual casualty, because the shapes are already half gone.
Trap 4: decimal points and commas
A decimal point is the smallest mark on the page, and worth the most. If the engine drops a faint point, a price of 12.50 can surface as 1250. A thousands comma can be dropped or misread as a point, changing the figure by orders of magnitude. When comparing figures against the image, check the punctuation with the digits: both are part of the number.
Trap 5: totals that disagree with their own line items
The total is just another figure to the engine, with the same fallibility as the lines above it. If the items were read correctly and the total was not, the total disagrees with their sum; if one item was misread, the same disagreement appears. The arithmetic is therefore an independent check: add the extracted items up yourself, and where your sum and the extracted total part company, a misread exists in the set. Find it against the image before recording anything.
The checking routine, step by step
- Open the Image to Text tool and choose your invoice or receipt image. Check the preview, and straighten or crop a skewed or shadowed image; clear, high-contrast images read best.
- Press Read the text and watch the progress bar.
- Note the word, line and character counts. If they fall far short of what the document holds, entries were missed: re-prepare the image rather than trusting a partial read.
- Compare every figure in the result box against the image, dates, references and quantities included, watching the lookalike pairs and decimal points. Fix mistakes by editing the text in the box.
- Add the corrected items up yourself and compare the sum with the extracted total. If they disagree, return to step 4 and hunt the misread.
- Only when every figure matches the image and the arithmetic closes, copy the text or download it as a .txt file.
Worked example: the counts habit
Give the tool a clear image of a short printed notice reading "Meeting moved to Friday". It returns exactly that line; the summary underneath reads "4 words, 1 lines, 23 characters", matching the notice exactly: four words, one line, twenty-three characters with spaces.
There are no figures in that example, and that is the point: the habit is verification against the source. The counts said the whole document was captured, and a glance confirmed it. On an invoice the same habit scales up: the counts first, a rough completeness check, then the figure-by-figure comparison and adding-up check, which catch the swapped digit the counts cannot see.
Limitations and honest tradeoffs
The tool reads English only, because Tesseract needs a separate data file per language and this tool ships with English. An invoice in another language comes back garbled or empty, figures included.
Clear, high-contrast print reads best, and receipts are often neither: thermal paper fades, giving the engine weak shapes to match, the condition that produces digit swaps. A badly faded receipt may be unrecoverable by re-running; photograph it sharply and evenly.
Handwriting is the third boundary. Handwritten amounts read poorly: neat printed-style handwriting might partly survive, joined handwriting usually fails. Where a handwritten figure matters, typing it yourself is safer.
Finally, the engine offers no warning: a clean read and a wrong one come back with the same confidence, which is why the routine above is the method, not optional garnish.
Common mistakes
- Pasting figures straight into accounts without checking. Clean-looking output is precisely why a swapped digit survives. The comparison pass is the job, not an extra.
- Proofreading the words and skimming the numbers. Words carry context that exposes errors; numbers do not. Give figures more attention, not less.
- Trusting a total because the line items look right. The total is read independently and can be the wrong one. Add the items up; do not eyeball it.
- Ignoring counts that fall short. Counts well below what the document holds mean entries were missed. Re-prepare the image instead of recording a partial bill.
- Re-running the same faded image unchanged. Identical input gives identical output: improve the photo or accept the longer manual check.
FAQs
Why are numbers riskier than words in OCR output? OCR reads shapes, not meaning. A misread word often looks wrong in context, but a misread digit produces a figure that looks perfectly plausible, and nothing flags it. The only defences are figure-by-figure comparison against the image and checking the arithmetic.
Which characters does OCR confuse most often? The lookalike pairs: 0 and the letter O, 1 and the letter l, and 5 and the letter S. Faint decimal points and commas are easily dropped or misread, changing a value far beyond one digit.
How can I check an invoice total the tool extracted? Add the line items up yourself and compare with the extracted total. If they disagree, a figure was misread; go back to the image and compare figure by figure until the arithmetic closes.
Can I trust the word and character counts when checking a receipt? Only as a rough completeness check. If the result reports far fewer words or lines than the receipt holds, entries were missed and the image needs re-preparing. Matching counts never prove digits right; only comparison and the adding-up check do.
Is my invoice or receipt uploaded to a server? No. The Tesseract engine runs in your browser and reads the image on your device. Only the engine and its English language data are downloaded, once, from a public CDN, and then cached.
Conclusion
OCR extracts an invoice in seconds; the minutes belong to the checking. Run the image through the Image to Text tool, compare every figure against the original, make the line items prove the total, and only then record the numbers. For the lighter side of the same tool, see our companion guide on copying text from a meme or social media image. For more in this series, see the File and Data Conversion guides.
References
- Tesseract OCR, the engine that runs in the browser for this tool: https://github.com/tesseract-ocr/tesseract
- MDN Web Docs, on the File API used to read files locally in the browser: https://developer.mozilla.org/en-US/docs/Web/API/File_API