Some countries write 12,50 and others write 12.50, and OCR can normalise one into the other or drop the separator entirely, turning 12.50 into 1250. The check is to compare the OCR numbers with the printed page, separator and all. This guide checks five numbers on one European invoice.
Prerequisites
A scanned document that uses decimal commas and an OCR tool. Note the document locale before starting, since it decides which separator is correct.
Steps
1. Run OCR on the document
Run OCR on the document and save the text. Expected result: the five amounts become selectable text.
2. Read the five amounts from the OCR text
Read each amount from the OCR text exactly as printed, separator included. Expected result: five amounts, each with a decimal comma.
3. Compare each separator with the printed page
Compare each OCR amount with the printed page. Expected result: all five amounts keep the decimal comma.
4. Record any separator OCR changed
Record every amount whose separator OCR changed or dropped. Expected result: a note that lists the errors or confirms all five matched.
Practice check: fictional German invoice with decimal commas, 2026-11-25
The table below is fictional practice material. It lists the five amounts and the separator each must keep.
| Item | As printed |
|---|---|
| Paper | 12,50 |
| Ink | 24,80 |
| Lamps | 37,20 |
| Cables | 9,95 |
| Delivery | 6,40 |
Expected result. all five OCR amounts keep the decimal comma, matching the printed invoice.
Limits
- A separator that survives OCR can still be misread by the spreadsheet that imports the text, so check the numbers again after import.
- UNTESTED – no OCR tool or AI tool was run; all results above are expected results. The practice file is fictional.
Sources
- Adobe Acrobat, Extract key data from scanned PDFs with OCR – Try to select a word first; OCR adds text you can search, select, copy and extract; tables can flatten, so compare totals with the original page. Checked 2026-11-29.
- Tesseract OCR Documentation, output formats – Tesseract supports plain text, searchable PDF, hOCR, TSV, ALTO and PAGE output; –psm sets the page segmentation mode. Checked 2026-11-29.
