翻篇收录说明
翻篇网页快照

Best OCR Model for Scanned Documents: 17 Routes Measured

https://openrouter.ai/blog/insights/best-ocr-model/

最近抓取:2026-12-04 13:10:23(北京时间)

最近内容变化:2026-12-01 20:36:55(北京时间)

这是最近一次有效抓取的文本快照,不含网页脚本、图片和动态交互内容。实际网页可能已更新。

访问原网页

页面简介

We ran 8 scanned pages through 15 vision models, Mistral OCR and Tesseract. The most accurate, the best value, and the made-up values to watch for.

正文摘录

Best OCR Model for Scanned Documents, MeasuredKenny Rogers ·11/10/2026Tl;drTl;drHow we testedWhich OCR model is most accurate on scanned documents?Which OCR model fits your workWhat goes wrong when a vision model reads a hard scan?Step 1: Send the scan to a vision modelStep 2: Turn reasoning off for transcriptionStep 3: Cross-check two models from different labsStep 4: Use Mistral OCR as a dedicated engineIs an LLM better than Tesseract for OCR?Frequently asked questionsNext stepsTurning scanned documents into reliable text is hard. Classic OCR engines such as Tesseract fail on faded print, handwriting and faxes. Vision models read those pages well, but sometimes write values that aren’t on the page. We made eight test pages from text we wrote, so every character could be checked, and ran them through 15 vision models and Mistral OCR on OpenRouter, plus Tesseract. The best OCR model in our test was Claude Opus 5.5, with 262 of 264 key values right at $16.42 per 1,000 pages. Mistral OCR was the best value: 258 of 264 for $2.02. This post shows the results, the errors to watch for, and code to catch them. These results are a starting point. Our eight pages aren’t your documents, so the only real way to know which model is best for your workflow is to test the candidates on your own scans. Tl;dr Most accurate: anthropic/claude-opus-5.5. Best value: mistral-ocr. Cheapest good result: inclusionai/ling-3.0-flash-vl with reasoning off, 254 of 264 for $0.04 per 1,000 pages. On a faded receipt, GPT-6 Luna and GPT-6.1 Sol made up card digits, wifi passwords and a server name. Error rates don’t show this, so check the values you’ll actually use. Turning reasoning off made four of five models we tested faster and cheaper, with no key values lost. Flagging the words where two cheap models from different labs disagreed caught 34 of 35 wrong words, for $0.62 per 1,000 pages. How we tested We rendered each page from known text, then degraded it like a scan: a small rotation, blur, noise and JPEG compression. Five pages are ordinary: a receipt, a letter with two deliberate misspellings, a form with a ticked box, a two-column newsletter and a neat handwritten note. Three are built to be hard: a faded thermal receipt, fast cramped handwriting, and a low-resolution fax of 12 serial numbers made from look-alike characters (0/O, 1/I/L, 5/S, 8/B), so a model can’t guess them from context. We scored each transcript two ways. The character error rate (CER) is the edit distance to the true text divided by its length, ignoring line breaks and Markdown. The key values are 88 strings a pipeline would use, 10 to 15 per page, such as totals, dates, card digits, serials and the misspelled words. Each has to appear exactly in each of three runs, which gives 264 checks per model. Costs are the billed usage.cost of each request. Models are from the OpenRouter catalog as of October 8, 2026. Which OCR model is most accurate on scanned documents? The table is sorted by key values correct. RouteKey values correctCER, all pagesCER, 3 hard pagesCost per 1,000 pagesMedian secondsanthropic/claude-opus-5.5262 of 2640.02%0.06%$16.427.2mistral-ocr (PDF engine)258 of 2640.14%0.26%$2.023.8anthropic/claude-sonnet-5.5256 of 2641.34%3.49%$7.684.2google/gemini-3.8-flash254 of 2640.15%0.28%$7.509.3stepfun/step-5-preview254 of 2640.42%1.11%$5.489.3inclusionai/ling-3.0-flash-vl254 of 2641.05%2.56%$0.127.2anthropic/claude-haiku-5.5253 of 2641.19%2.89%$0.463.8x-ai/grok-4.7252 of 2640.13%0.35%$12.8511.3z-ai/glm-5.3-flashx252 of 2640.33%0.86%$1.455.5openai/gpt-6.1-sol252 of 2640.65%1.74%$6.038.4deepseek/deepseek-v4.1-flash248 of 2640.20%0.48%$0.204.8qwen/qwen3.8-flash248 of 2640.74%1.49%$0.298.1qwen/qwen3.8-27b246 of 2640.92%2.31%$1.5410.8xiaomi/mimo-v2.6-flash246 of 2642.02%5.34%$0.583.1mistralai/mistral-large-4-0240 of 2644.61%12.19%$6.8047.9openai/gpt-6-luna232 of 2641.49%3.95%$0.547.8Tesseract 5.5 (local, 1 run)46 of 8826.06%64.39%$058.1 On the five ordinary pages every vision model scored under 0.3% CER, and all 15 transcribed the neat handwriting perfectly. Most of the spread comes from the faded receipt. Opus 5.5 and Mistral OCR got all 33 checks on it, while GPT-6 Luna got 16. Models count image tokens differently (a median page was 1,070 prompt tokens for DeepSeek and 3,314 for Grok), so measure cost on your own pages. Which OCR model fits your work If most of your work isStart withWhyHard scans where every value mattersClaude Opus 5.5262 of 264 key values, at $16.42 per 1,000 pagesHigh volume at a fair priceMistral OCR (the mistral-ocr PDF engine)258 of 264 key values, at $2.02 per 1,000 pagesThe lowest costLing 3.0 Flash VL with reasoning off254 of 264 key values, at $0.04 per 1,000 pagesSerial numbers and IDs with look-alike charactersClaude Haiku 5.5 checked by DeepSeek V4.1 FlashThe pair flagged 34 of 35 wrong words, for $0.62 per 1,000 pagesClean typed pages, offlineTesseract 5.5Perfect on the letter and the newsletter, and free, but it returned nothing for the faded receipt What goes wrong when a vision model reads a hard scan? The most serious error was a value that looks plausible but isn’t on the page. Here’s the bottom of the faded receipt as printed, followed by one GPT-6 Luna run: CONTACTLESS 32.95 CARD ****9026 SERVED BY: PRIYA WIFI: verdigris-guest / tide2026 NET 27.46 CONTACTLESS CARD **** 9027 SERVED BY: SHEVA WIFI: verdigris_guest / 1freecoffee There’s no NET line on the receipt. The card ends in 9026, and the name and password are invented. GPT-6 Luna changed the server’s name and the year in all three runs. GPT-6.1 Sol wrote a different made-up password in each run (flatwhite24, flat9am!, flatleaf). We also asked models to write [?] instead of guessing. It didn’t help: four of seven models never used the marker. The other errors that repeated: O and 0: Two fax serials were wrong in at least one run from 13 of the 15 models. Only Claude Sonnet 5.5 and GPT-6.1 Sol read them correctly every time. Spelling fixes: The letter is signed “Senior Assosiate”, and the prompt says to copy spelling exactly. 16 of 45 transcripts “corrected” it anyway. Ticked boxes: Claude Sonnet 5.5 and Haiku 5.5 copied the form’s checkbox labels but dropped which box was ticked. Step 1: Send the scan to a vision model A vision model generates its transcript the same way a language model generates any text, so it tends to write what text usually says rather than exactly what’s printed. The prompt asks it to copy exactly. That reduces the problem but doesn’t remove it: 16 of 45 transcripts still corrected the letter’s deliberate misspelling. You need an OpenRouter API key in OPENROUTER_API_KEY. The image goes in as a base64 image_url part (see image inputs), so every vision model on OpenRouter takes this same request. Save it as transcribe.py, since steps 3 and 4 import from it: import base64 import mimetypes import os import requests API = "https://openrouter.ai/api/v1/chat/completions" HEADERS = {"Authorization": f"Bearer {os.environ['OPENROUTER_API_KEY']}"} PROMPT = ("Transcribe all of the text in this scanned document, in reading order. " "Copy spelling, numbers and punctuation exactly as they appear, even if they " "look wrong. Return plain text only, with no Markdown and no commentary.") def transcribe(path, model="deepseek/deepseek-v4.1-flash", reasoning={"effort": "none"}): mime = mimetypes.guess_type(path)[0] or "image/jpeg" with open(path, "rb") as f: image = f"data:{mime};base64," + base64.b64encode(f.read()).decode() body = { "model": model, "max_tokens": 16000, "messages": [{"role": "user", "content": [ {"type": "text", "text": PROMPT}, {"type": "image_url", "image_url": {"url": image}}, ]}], } if reasoning: body["reasoning"] = reasoning response = requests.post(API, headers=HEADERS, json=body, timeout=300) response.raise_for_status() data = response.json() choice = data["choices"][0] if choice["finish_reason"] != "stop": raise ValueError(f"finish_reason={choice['finish_reason']}: the transcript is incomplete") return choice["message"]["content"], data["usage"]["cost"] if __name__ == "__main__": text, cost = transcribe("receipt.jpg") print(text) print(f"\n${cost:.5f}") HARBOR LANE MARKET 1180 Harbor Lane, Unit 4 Portland OR 97209 Tel (503) 555-0148 ... TOTAL 62.86 VISA ****4471 62.86 AUTH 08813C ... $0.00022 Every character came back right, for about two hundredths of a cent. The data URL takes its type from the file extension, so PNG and WebP scans work too. To compare models, change only the model string, and pass reasoning=None for the models in step 2 that can’t turn reasoning off. The finish_reason check is there because reasoning tokens count against max_tokens. With a limit of 4,000, Gemini 3.8 Flash spent 3,841 tokens reasoning about the fax on every run and stopped partway through serial number 4. The request still returned 200 OK with finish_reason: "length", so without the check a pipeline stores short transcripts without noticing. Step 2: Turn reasoning off for transcription Reasoning helps when a model has to plan an answer. Copying text from a page doesn’t need a plan, so the extra tokens mostly add cost and time. That’s why transcribe sends "reasoning": {"effort": "none"} by default (see reasoning tokens). We reran the full test with reasoning off for every model that allows it: ModelKey values, on → offCER, on → offCost per 1,000 pages, on → offMedian seconds, on → offmistralai/mistral-large-4-0240 → 2494.61% → 0.15%$6.80 → $1.6847.9 → 5.6inclusionai/ling-3.0-flash-vl254 → 2541.05% → 0.19%$0.12 → $0.047.2 → 4.0openai/gpt-6-luna232 → 2321.49% → 1.08%$0.54 → $0.227.8 → 3.8deepseek/deepseek-v4.1-flash248 → 2490.20% → 0.23%$0.20 → $0.164.8 → 4.5qwen/qwen3.8-27b246 → 2440.92% → 2.28%$1.54 → $0.7710.8 → 8.9 With reasoning on, one Mistral Large 4 request reasoned for 626 seconds and returned no text (finish_reason: "error"). Qwen3.8 27B did better with reasoning on, so test your own pages. Gemini 3.8 Flash, Grok 4.7 and GLM 5.3 FlashX don’t allow r