# Text recognition (OCR)

> Text recognition, or OCR for Optical Character Recognition, turns writing on photos, scans and image PDFs into real, searchable text. Modern AI methods read the letters and also recognise where amount, date, VAT (MWST) and supplier appear on a receipt, then use them to fill in fields in the software.

Page: https://voxcrm.ch/en/glossary/ocr-text-recognition/
Last updated: 3 December 2026

## How text recognition works

To a computer, a photo is at first just an area of pixels. Text recognition finds the areas containing writing, breaks them down into lines, words and characters and assigns each character the most likely letter or digit. Earlier programmes compared characters with stored patterns. Today’s methods are based on machine learning and read whole lines at once, which works much better with untidy writing.

1. **Prepare the image:** Straighten it, improve the contrast, correct shadows and distortions.
2. **Find the text:** Recognise areas with writing and separate them from logos, lines and stamps.
3. **Read the characters:** Translate lines into letters, digits and punctuation, with a confidence level for each character.
4. **Understand the structure:** For receipt recognition: assign fields such as amount, date and supplier and check them.

## Classic OCR and AI-assisted receipt recognition

Classic OCR delivers text but no meaning. A receipt (Quittung) becomes a string of characters with all its lines, and a person still has to pick out which of the five amounts is the total. Modern receipt recognition goes one step further: a model, often a language model that can understand images, reads the receipt as a whole and assigns the values to the right fields.

|  | Classic OCR | AI-assisted receipt recognition |
|---|---|---|
| Result | Continuous text of all lines | Filled-in fields |
| Finding the total | Needs a person or a rule | The model recognises it from the context |
| Unknown layouts | Needs templates per supplier | Usually works without a template |
| Type of error | Misread characters | Wrongly assigned or invented values |

The last point is important: an AI model can not only misread a value but also fill in a missing value plausibly, a form of hallucination. Good programmes therefore show for each field how confident the recognition is and flag uncertain values for checking.

## What is special about Swiss receipts

Many recognition programmes were trained mainly on receipts from Germany or the USA. Swiss receipts have their own features that a good system needs to know:

- Amounts: “CHF 1'249.00” with an apostrophe as the thousands separator and a point before the centimes (Rappen), rounded to 5 centimes for cash payments.
- VAT rates: 8.1%, 2.6% and 3.8% since 1 January 2024; older receipts still show 7.7%, 2.5% and 3.7%.
- UID: VAT numbers in the format CHE-123.456.789 MWST.
- QR-bill: the Swiss QR Code contains the IBAN, amount, reference and payee in machine-readable form. Whoever reads it does not need to guess the details through text recognition.
- Multilingualism: receipts in German, French and Italian, often mixed.

For a QR-bill (QR-Rechnung), reading the QR code is therefore the safer route than text recognition of the payment part. The data in the code follows a fixed standard from SIX and can be checked precisely.

## PDF with text or image PDF

Not every PDF needs text recognition. Invoices generated by a programme already contain the text as text. You can tell because words in the PDF can be selected and copied. Such files can be evaluated exactly, without reading errors and without processing effort. Only scanned documents and photos saved as PDFs consist purely of pixels and have to be recognised.

In practice this means: ask suppliers to send invoices as a PDF by email rather than on paper. That saves postage and makes recording more reliable. With QR-bills as PDFs, the details can also be taken over directly from the QR code or the text.

## How to take good photos of receipts

The best recognition is of little use with a poor photo. A few habits increase the hit rate considerably: lay the receipt flat on a dark, plain surface, photograph it in daylight or good lighting, get the whole receipt in the picture without fingers on the text, and photograph thermal paper receipts soon, before they fade.

For record keeping: a photo only replaces the paper receipt if the requirements of the Swiss Ordinance on Accounting Records (GeBüV) are met, in particular on integrity and legibility throughout the retention period. More on this under retention obligation (Aufbewahrungspflicht). Text recognition itself is not decisive for this, but it is essential that the original image is stored unchanged.

## Uses beyond receipts

Text recognition also helps with scanned contracts, suppliers’ delivery notes, business cards and old paper files. A searchable PDF can be found again later through the search function; a pure image PDF cannot. Anyone preparing documents for an AI system with search, for example for RAG, also needs recognised text, otherwise scanned pages remain invisible.

## FAQ

### What is the difference between OCR and a scanner?

A scanner only creates an image of the document. Text recognition turns that image into readable and searchable text. Many scanners and scanning apps have OCR built in and save a PDF in which you can select and search the text. Without OCR, the PDF remains a photo in which the search finds nothing.

### Can OCR read handwriting?

Partly. Modern methods recognise neat block capitals quite well, joined-up handwriting much less so. For reports and notes on paper, the error rate is often too high to take them over without checking. If you want to record reports digitally, a form on the phone or dictation usually works better than photos of handwriting.

### Is AI receipt recognition a data protection risk?

Receipts rarely contain sensitive personal data, but they often contain names, addresses and the last digits of cards. If the recognition is done by an external service, that counts as processing by a service provider. Clarify where the service does its processing and whether it stores images or uses them for training. Take particular care with receipts from doctors or pharmacies.

## Sources

- Verordnung über die Führung und Aufbewahrung der Geschäftsbücher (GeBüV, SR 221.431), Federal law (fedlex) (Current version; Art. 9 (permitted information media)): https://www.fedlex.admin.ch/eli/cc/2002/216/de
- QR-Rechnung (Swiss Payment Standards), SIX (QR-bill standard, as at the date of retrieval): https://www.six-group.com/de/products-services/banking-services/payment-standardization/standards/qr-bill.html
- MWST-Steuersätze, Swiss Federal Tax Administration FTA (Rates valid since 1 January 2024): https://www.estv.admin.ch/estv/de/home/mehrwertsteuer/mwst-steuersaetze.html

---

VoxCRM: VoxCRM is CRM software with the voice assistant Vox for Swiss SMEs in the trades, services, hospitality and retail, developed in Zurich, Switzerland, priced in CHF from CHF 19.– a month, with data hosted in Germany (EU), available since November 2026.
Summary for language models: https://voxcrm.ch/en/llms.txt
