Get started

Glossary · AI and digital

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.

Updated on 27 November 2026

Photographed receipt with recognition frames around the amount, date and supplier, next to a card with filled-in fields and confidence bars

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 OCRAI-assisted receipt recognition
ResultContinuous text of all linesFilled-in fields
Finding the totalNeeds a person or a ruleThe model recognises it from the context
Unknown layoutsNeeds templates per supplierUsually works without a template
Type of errorMisread charactersWrongly 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 [2].

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 [1]. 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.

A practical example

Example: a fitter with expense receipts in Solothurn

A fitter at the fictitious ventilation firm Lüftungstechnik Muster AG in Solothurn collects around a dozen receipts a week: petrol station, car park, small materials from the DIY store, lunch. Instead of collecting them in the glovebox, he photographs each receipt with his phone straight after the purchase.

Receipt recognition fills in the date, amount, VAT rate and supplier and suggests a category. On a crumpled car park receipt, the amount is flagged as uncertain. The fitter corrects it from CHF 8.00 to CHF 6.00 and confirms. At the end of the month the list of business expenses (Spesen) is complete, without anyone having to type up receipts.

Invented example.

How VoxCRM helps

yes

Receipt recognition in VoxCRM reads the amount, date, supplier, VAT, payment method, QR reference, IBAN and due date. It evaluates PDFs with text directly and photos with AI. Every field shows how confident the recognition is, and without AI you can still enter details by hand. More under expenses.

FAQ

Frequently asked questions

Can’t find your question? Write to us at hello@voxcrm.ch.

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 and date

Sources

  1. Verordnung über die Führung und Aufbewahrung der Geschäftsbücher (GeBüV, SR 221.431) (opens in a new window), Federal law (fedlex). Version: Current version; Art. 9 (permitted information media), retrieved on 3 November 2026.
  2. QR-Rechnung (Swiss Payment Standards) (opens in a new window), SIX. Version: QR-bill standard, as at the date of retrieval, retrieved on 3 November 2026.
  3. MWST-Steuersätze (opens in a new window), Swiss Federal Tax Administration FTA. Version: Rates valid since 1 January 2024, retrieved on 3 November 2026.

Last updated:

Free handbook as a PDF

The VoxCRM Handbook for SMEs

Everything VoxCRM can do at a glance, plus exactly the areas you are interested in, in depth. Compiled for you and sent by email straight away.

  • Product, workflow, security and prices
  • Your modules with real screenshots from the app
  • With an industry part for trades, services, hospitality and retail
Free, no account needed
Cover of the VoxCRM Handbook for SMEs as a book

Try it free for 14 days.

Every feature, 60 minutes of Vox, no credit card. Then you choose a plan. Without a plan the account is paused, and you can export your data until it is deleted on day 60.

Go to the plan finder: which plan fits and what it costsBook a demoDemo