TotalApp Docs

OCR

Turn the writing in photos, scans and PDFs into text, or read an invoice, receipt or ID document into fields.

Overview

OCR (optical character recognition) reads the writing on a page and gives it back as text you can copy, search and edit. It can also read a document into labelled fields: the vendor, number, date and total of an invoice, the lines of a receipt, or the details on an ID. It uses a multimodal AI model (such as Llama Vision or Gemma) hosted on Cloudflare Workers AI, so nothing needs to be installed.

You find it in the Computer Vision group, next to Image Classification and Object Detection. It works on pictures and on scanned PDFs.

How to use it

  1. Drag a picture or a PDF onto the drop area, or click it to choose a file. PNG, JPEG and WebP pictures up to 20 MB and PDFs up to 30 MB are accepted.
  2. Choose Read as: Plain text for a full transcription, or Invoice, Receipt or ID document to get labelled fields.
  3. For a PDF with several pages, choose how many Pages to read (1, 3, 5 or 10). Only the first 10 pages of a PDF can be read.
  4. Click Read document. The result appears on the right; click a page number under the picture to see another page.

In plain text mode you get the text, with the line breaks and table rows kept. In the other modes the Fields tab shows each value (empty ones show a dash) and, for invoices and receipts, a table of line items; Raw answer shows exactly what the model returned. Use Copy for the page you are looking at, or Download to save the whole document as a .txt file (plain text) or a .json file (fields, one entry per page).

Tip

Use a straight, well-lit photo or a sharp scan. A page photographed at an angle or in shadow is read much less reliably. The model starts on a Llama Vision model when one is available; you can pick another one on the screen.

Good to know

  • A multimodal model reads the page the way a person would, so it can misread small print, stamps and handwriting and may leave out a field it cannot see. Check amounts, dates and ID numbers against the document before you rely on them.
  • A PDF is turned into one picture per page in your browser, so scanned and photographed PDFs work. A text layer inside a PDF is not used.
  • Identity documents contain personal data. They are read and shown on the screen only and are not stored. Read only documents you are allowed to process.
  • Some models, such as Meta’s Llama Vision, can only be used once the license has been accepted on the AI account. If the model you start on is refused for that reason, the screen switches to another model and tells you; ask your administrator to accept the license if you want to use the first one.
  • Every page counts as one AI request against your workspace’s AI credits and your plan’s per-minute limit, so a PDF of 5 pages is 5 requests. These are larger models than the ones behind Image Classification, so they use more credit per request.
  • Reading the fields into Finance & Accounting, for example to create a bill from an invoice, is planned and not available yet.

Frequently asked questions

Why are some fields empty?
The model leaves a field empty when it is not on the document or cannot be read, rather than guess. Try a sharper picture or another model.
Which languages does it read?
The text is copied as it is printed, in any language the model knows, including Turkish. Rarer scripts and poor scans are read less well.
Can it read more than 10 pages?
Not in one go. Split the PDF and read the parts one after another.