Skip to content
← Notebook

AI Models & Inference

Free OCR for scanned documents and phone photos: 4 local readers tested on Spanish invoices and delivery notes

The OCR built into the Mac got 171 of 180 key data items right on invoices, delivery notes and letters, photos included. Tesseract lost over half the text on 5 of 6 photos and Gemma 3 swapped words.

Date
Dec 1, 2026
Reading time
8 min
Result
Apple Vision: 171 of 180 key data items, 0.29 s per page • Tesseract: 13 of 60 on phone photos • Gemma 3 4B: 162 of 180, 4.99 s per page

Translated from the Spanish original. The code, data and READMEs on GitHub are in Spanish.

To turn scanned or phone-photographed invoices, delivery notes and letters into text, for free and without the document leaving the office, the best reader we measured is the one that already ships with the Mac: Apple Vision got 171 of 180 key data items right (amounts, dates, document numbers and accented names) in 0.29 seconds per page, and still got 55 of 60 from phone photos. Tesseract, the most widely used free OCR, does well on scans (56 of 60), but on photos it dropped more than half of the text on 5 of 6 pages. Gemma 3 4B, an AI model with vision, read the photos almost as well (53 of 60), but it replaced words and figures with others that look right: «harina de centeno» (rye flour) became «harina de cemento» (cement flour) and «455,95 €» became «459,95 €». Measured on 1 December 2026 on an Apple M1 Max laptop.

“Which free OCR reads Spanish well?” and “does a vision AI read better than Tesseract?” are questions that keep coming up in 2026. The comparisons going around are in English, measure general text or receipts, and hardly any include Apple’s OCR. Our two earlier tests, on reading invoices and on PDF parsers, left scanned documents out. This is that missing step.

Definitions

  • OCR (optical character recognition): the program that turns an image of a page into text you can copy, search or pass to other software.
  • Local: it runs on your own computer, with no account, no pay-per-use and without sending the document to anyone.
  • AI model with vision: a language model that also accepts images. Here it is asked to transcribe the text as it is, without correcting anything.
  • Key data item: something a small business needs to extract without a single error. Ten per document: amounts, dates, invoice or order numbers, item codes and names with accents or ñ. It only counts as correct if it appears written exactly the same.
  • Wrong figure: a number the reader wrote that does not exist on the page, such as “48,80” where the page said “46,80”.
  • Character error rate: how many characters need fixing for every 100 in the original. It also rises when the reader changes the order of the lines, even if it reads them correctly.

Hypotheses

  1. An AI model with vision reads scanned documents and photos better than classic OCR.
  2. The OCR that already ships with the Mac is enough for a small business’s documents.
  3. Tesseract, the most widely used free OCR, is enough for office scans and photos.

Setup

  • Six fictitious business documents, written by hand for the test: an invoice, a delivery note, a letter from an accounting firm, a building quote, meeting minutes and a purchase order. One page each, in Arial or Times New Roman, with amounts in Spanish format (1.185,50 €, i.e. €1,185.50), dates, codes and names such as Peñalara, Ibáñez or Íñigo. 60 key data items in total.
  • Three states per document (18 images):
    • Clean: the page as it is, like a digital PDF converted to an image (200 dpi).
    • Scanner: 150 dpi, tilted 1.5°, slightly blurred, with noise and saved as JPEG, like an office scanner.
    • Phone photo: in perspective, with a side shadow, 1,100 pixels wide, blurred and saved as JPEG.
  • Four free, local readers:
    • Apple Vision: the text recognition built into macOS (the Vision framework), in accurate mode with Spanish as the preferred language.
    • Tesseract 5.5.4: the most widely used open-source OCR, with its standard Spanish model.
    • EasyOCR 1.7.2: open-source neural-network OCR, on the Mac’s GPU.
    • Gemma 3 4B: Google’s AI model with vision, run with Ollama, instructed to transcribe without correcting or summarising.
  • Five passes per reader over the 18 images: 360 readings. All four returned exactly the same text in all five: a data item that is misread is always misread. Times exclude loading the program and one warm-up reading (0.25 to 8.75 seconds in total, once).
  • Hardware: Apple M1 Max laptop with 64 GB, macOS 26.6.2, plugged in. The whole measurement took about 10 minutes.

Results

Key data items read correctly

Reader Clean (of 60) Scanner (of 60) Phone photo (of 60) Total (of 180) Wrong figures Near-empty pages Seconds per page
Apple Vision 58 58 55 171 2 0 0.29
Gemma 3 4B 56 53 53 162 7 0 4.99
EasyOCR 53 50 35 138 47 0 0.80
Tesseract 57 56 13 126 6 5 0.18

Near-empty pages: out of 18 pages, how many came back with less than half of the text. Times are the median of each reader’s 90 readings. At that pace, 100 pages take about 29 seconds with Apple Vision and 8.3 minutes with Gemma 3 4B.

Character error rate

Reader Clean Scanner Phone photo
Apple Vision 0.24% 8.70% 7.09%
Gemma 3 4B 2.19% 2.22% 3.18%
EasyOCR 0.92% 8.73% 12.46%
Tesseract 16.67% 16.82% 62.67%

This table penalises order, not just letters. Tesseract reads tables column by column: first all the line items, then all the amounts, so it gets the amounts right but loses which amount belongs to which item. For Apple Vision, almost all of the error on scans comes from tables: with the page tilted, when the lines are rebuilt from their positions some amounts end up one line lower. On the letter and the minutes, which are running text, its error rate was below 1% in all three states.

Where each one goes wrong

  • Apple Vision does not recognise two symbols: it writes “m’” instead of “m²” and “N.°” (the degree sign) instead of “N.º” (the Spanish abbreviation for “number”). On the photo of the delivery note it swapped the decimal separator: «1.200» units as «1,200» and «4,2 x 19» as «4.2 x 19». It did not invent any amount.
  • Gemma 3 4B replaces what it cannot make out with something that sounds right. «Reformas Guadalquivir» became «Reformas Guadalajara», «harina de centeno» (rye flour) became «harina de cemento» (cement flour), «P-2026/118» became «P-2026/18» and, on the invoice photo, «46,80 €» became «48,80 €». On the scanned quote it wrote «459,95 €» instead of «455,95 €» and moved the totals down one line: the VAT ended up next to the subtotal amount. It skipped the purchase-order number in all three states. These are the most dangerous errors in the test, because the text looks correct.
  • EasyOCR confuses letters and digits: the tax ID «B00000017» came out as «B00OOOO17» or «BOOOOOO17» (letter O instead of zeros), the times «9:30» and «14:00» as «9.30» and «14.00», and on the photos it wrote 28 figures that were not on the page.
  • Tesseract reads almost everything correctly on clean and scanned pages, but on the photos (side shadow and grey background) it dropped more than half of the text on 5 of 6 pages; for the letter it returned nothing.

What it means for a business

  • Hypothesis 1: partly holds. Gemma 3 4B read the photos far better than Tesseract (53 vs 13 of 60) and EasyOCR (35), but not better than Apple Vision (55); it took 17 times longer and was the only one that replaced words with similar-looking ones.
  • Hypothesis 2: holds in this test. Apple Vision was the most accurate in all three states and wrote the fewest wrong figures (2 across the 18 pages).
  • Hypothesis 3: holds for scans, not for photos. Tesseract got 57 and 56 of 60 on clean and scanned pages, and 13 of 60 on phone photos.

An accounting firm digitising clients’ paper invoices, a warehouse photographing signed delivery notes or an office that wants to search its old letters can turn paper into text for free, locally and in under a second per page. What the data does not support is trusting the text without checking it: the workflow that comes out of the test is scan (better than photographing) → local OCR → automatically check that totals add up and that dates, tax IDs and amounts have the expected format → a person reviews whatever doesn’t match → send it to the accounting or management software.

When to use each option

  • Apple Vision: the best option we measured if the office uses Macs. To process batches of documents you need a small program like the one in this test. macOS also lets you select text in photos and PDFs with Live Text, but that feature was not measured here. Check symbols (m², N.º) and, with tilted tables, which item each amount belongs to.
  • Tesseract: for scans on Windows or Linux, free and the fastest. Not for phone photos unless you clean them first (straighten, remove shadows, convert to black and white), which was not measured here. If you need tables, check the reading order.
  • Gemma 3 4B or other vision models: when the document is so bad that classic OCR extracts nothing, and always with an amount check afterwards. Not for feeding invoices into accounting without review.
  • EasyOCR: we don’t recommend it for amounts and codes: it wrote the most wrong figures.
  • In any case: test with 20 of your own documents, the worst ones you receive, before digitising the whole archive.

Limitations

  • Synthetic documents. Six computer-generated pages, with two fonts and simulated degradation. Creased paper, stamps, signatures over the text, handwriting, ruled tables, multiple columns or real photos may give different results. With 60 items per state, each item is worth 1.7 percentage points.
  • Exact matching. “m’” for “m²” counts as a failure even though a person would understand it. The rules are in the code.
  • Default settings. No image was preprocessed and Tesseract’s page segmentation mode was not tuned; with cleaned-up photos it may improve a lot. Gemma 3 4B was tested with a single prompt; a larger vision model (for example Gemma 4 31B) was not measured, for time reasons.
  • The line order for Apple Vision and EasyOCR is rebuilt by our code from the position of each fragment; another method may order tilted tables better.
  • Apple Vision only runs on macOS (and on iPhone and iPad). The OCR built into Windows was not tested.
  • A single laptop, an Apple M1 Max with 64 GB, plugged in and with other apps open. On a computer without an Apple chip or a GPU, EasyOCR and Gemma 3 4B will be slower.
  • No comparison with paid cloud OCR (Google, Amazon, Microsoft or ChatGPT), because they need an account and send the document out. The question here is what you get for free and locally.

How to reproduce it

Code, the six documents, the 360 raw readings and the scoring (code and README in Spanish): yeswelab-laboratorio/ocr-documentos-escaneados-ia-local-gratis on GitHub. It needs a Mac with Python and Ollama, with no accounts or keys; the first run downloads Tesseract’s Spanish model and EasyOCR’s models. To try it with your own documents, change the texts and key data items in documentos.py.

Want to know whether your paper invoices, delivery notes or files can be turned into text without errors and without leaving the office? Commission the experiment with 20 of your documents and we’ll tell you which reader handles them best, how long it takes on your hardware and what always needs checking.

#Apple Vision (macOS 26.6.2)#Tesseract 5.5.4#EasyOCR 1.7.2#Gemma 3 4B#Ollama 0.40.15#ocrmac 1.0.1#tesserocr 2.13.0