glyphwise ocr

Accuracy

Measured, not claimed.

We test on public-domain documents, forms, phone photos and handwritten archives the models never saw in training, and run other engines on exactly the same files, scored the same way. This page shows where Glyphwise leads and where it does not. The page, photo and handwriting comparisons were measured with the 1.2 reading model; the 1.4 model, trained further on documents in 28 languages, reads the same English pages within 0.4 points of word accuracy.

Character errors on government documents

2,000 lines from 8 held-out documents. Shorter is better.

  • Glyphwise0.33%
  • Tesseract 5.41.47%

About four times fewer wrong characters on the same lines.

Full pages

Words missed or misread, page by page.

Pages rendered at 300 dpi; the PDF's own text is the ground truth. The bars show 100 minus the word F1 score, on the same scale in every chart.

38 pages, forms included

Federal Register, IRS forms, a NIST report.

  • Glyphwise2.1%
  • PaddleOCR 3.75.6%
  • Tesseract 5.45.9%

Same pages, letters and digits only

Leaves out punctuation, dot leaders and form rules: the closer contest.

  • Glyphwise1.7%
  • PaddleOCR 3.72.0%
  • Tesseract 5.42.3%

Second page set

53 pages from 27 other held-out documents.

  • Glyphwise2.3%
  • Tesseract 5.46.0%

Phone photos of the 38 pages

At an angle, in uneven light, slightly blurred.

  • Glyphwise3.2%
  • Tesseract 5.49.1%
GlyphwiseOther engines

Damaged pages

Bad scans, measured one kind of damage at a time.

The 53-page set again, each page copied with one kind of damage and read by the 1.2 download. Shorter is better.

Words missed or misread (100 − word F1)

53 pages per row. Bars end at 15%.

  • Clean pages2.2%
  • Turned 90°, 180° or 270°2.2%
  • Shadow across the page2.2%
  • Tilted 15°2.7%
  • Half resolution (150 dpi)3.2%
  • Photographed at an angle5.8%
  • Heavy speckle noise11.0%
  • Third resolution (100 dpi)12.3%

Turned and shadowed pages read exactly like the clean ones. Very low resolution and heavy noise are the real limits: scan at 200–300 dpi where you can.

What cleanup is worth

The same damaged pages, with cleanup switched off.

Glyphwise repairs every page before reading it. Switching that step off (--no-prepare) shows what it does. Longer is better.

Words found (word F1), 53 pages each

  • Tilted 15°
    97.3%
    3.2%
  • Turned 90°
    97.8%
    2.9%
  • Upside down
    97.8%
    7.8%
  • Photo at an angle
    94.2%
    83.6%
  • Shadow
    97.8%
    90.7%
  • Speckle noise
    89.0%
    62.0%
With cleanup (the default)Cleanup switched off

Ordinary upright scans pass through cleanup untouched, so it costs nothing on good pages. See each repair, before and after.

Handwriting

Where Glyphwise does not lead.

TrOCR, a 560-million-parameter transformer that needs a graphics card, reads modern handwriting markedly better and old manuscripts slightly better. Glyphwise runs on an ordinary processor with its handwriting model, used automatically by the desktop window.

18th–19th century manuscripts

Bentham papers, 424 lines. Character errors; shorter is better.

  • TrOCR large12.7%
  • Glyphwise13.0%
  • Tesseract 5.474.6%

Modern handwriting, phone photos

GNHK notes and forms, 300 lines. Character errors; shorter is better.

  • TrOCR large32.2%
  • Glyphwise43.0%
  • Tesseract 5.471.1%
Best on the setGlyphwiseOther engines

Glyphwise skipped a few lines it could not read (6 of 424 and 11 of 300), which flatters it a little.

Fast or accurate

Two models in every download.

The fast model is the default. The accurate one (--accurate, the desktop Model choice, ?mode=accurate) reads difficult lines better, also reads Chinese, and takes about three times as long. Measured with the 1.5 download.

Character errors per mode

With each language model. Shorter is better; bars end at 50%.

  • Printed lines
    2,023 lines
    0.33%
    0.19%
  • Old manuscripts
    852 Bentham lines
    13.0%
    11.6%
  • Modern handwriting
    GNHK, 2,091 lines
    45.9%
    44.4%
FastAccurate

Printed lines: two fifths fewer errors (0.33% to 0.19%). The accurate model also finds more words on damaged pages (speckle noise 91.5% to 93.2%, phone photos 97.1% to 97.4%) and reads Chinese. On handwriting the 1.4 accurate model was better (10.4% and 41.7%); the desktop window adds the handwriting model to the fast one, which brings the manuscripts to 10.9%.

Time per page

The 38 pages as one batch, processor only, an 8-core laptop, 1.5 models. Shorter is better.

  • Fast0.62 s
  • Accurate1.76 s

With an NVIDIA card: 0.56 s and 1.79 s. Single pages, threads, memory and Tesseract's times are on the Speed page.

Languages

28 Latin-alphabet languages, each with its own model.

Character errors on 500 lines per language from five held-out official legal texts (for the EU languages, five EU regulations and directives published in every EU language), each read with its language's own model. Pick one with --lang, per request in the HTTP service, in the demo, or let Glyphwise choose per page.

The first seven: 1.2, then 1.4

  • English
    0.22%
    0.21%
  • French try
    0.91%
    0.82%
  • German try
    0.24%
    0.16%
  • Spanish try
    0.44%
    0.23%
  • Italian try
    0.64%
    0.60%
  • Portuguese try
    0.54%
    0.17%
  • Dutch try
    0.15%
    0.15%
1.2 reading model1.4 reading model

Fifteen more EU languages (models since 1.2.2): 1.2, then 1.4, own scale

  • Polish try
    1.23%
    0.19%
  • Czech try
    0.88%
    0.33%
  • Slovak try
    1.61%
    0.33%
  • Hungarian try
    0.13%
    0.06%
  • Swedish try
    0.61%
    0.35%
  • Danish try
    0.85%
    0.16%
  • Finnish try
    0.54%
    0.38%
  • Estonian try
    0.46%
    0.32%
  • Latvian try
    4.07%
    0.24%
  • Lithuanian try
    1.30%
    0.28%
  • Slovenian try
    0.22%
    0.16%
  • Croatian try
    0.47%
    0.14%
  • Romanian try
    1.22%
    0.26%
  • Maltese try
    2.56%
    0.88%
  • Irish try
    0.22%
    0.11%
1.2 reading model1.4 reading model

New in 1.4: Turkish, Norwegian, Icelandic, Catalan, Galician, Welsh

  • Turkish try
    1.47%
    0.34%
  • Norwegian try
    0.41%
    0.31%
  • Icelandic try
    1.14%
    1.08%
  • Catalan try
    1.07%
    0.88%
  • Galician try
    0.94%
    0.67%
  • Welsh try
    0.95%
    0.95%
1.3 reading model1.4 reading model

Test lines from laws and gazettes of Turkey, Norway, Iceland, Spain (Catalan and Galician editions) and Wales, none used in training. Every row uses the same language model for both readings. Sources: EUR-Lex, © European Union; Resmî Gazete; Storting; Stjórnartíðindi; Agencia Estatal Boletín Oficial del Estado; legislation.gov.uk (Open Government Licence v3.0). Other Latin-alphabet languages can be read with --lang none.

Every language, with lines read without an error

All results

Every number in one table.

Test setMeasureGlyphwiseTesseract 5.4PaddleOCR 3.7TrOCR large
Government documents2,000 lines from 8 held-out documentscharacter errors0.33%1.47%——1
Full pages, forms included38 pages: Federal Register, IRS forms, NIST reportwords found (F1)97.9%94.1%94.4%—
Same pages, words with a letter or digitleaves out punctuation, dot leaders and form ruleswords found (F1)98.4%97.7%98.0%—
Second page set53 pages from 27 other held-out documentswords found (F1)97.7%94.0%——
Phone photos of pagesthe 38 pages photographed at an angle, in uneven light, slightly blurredwords found (F1)96.8%90.9%——
Handwritten manuscriptsBentham papers, 18th–19th century, 424 lines; Glyphwise with its handwriting modelcharacter errors13.0%74.6%—12.7%
Modern handwriting, phone photosGNHK notes and forms, 300 lines; Glyphwise with its handwriting modelcharacter errors43.0%71.1%—32.2%
Speedthe 38 pages above as one batch, 8-core laptop with an NVIDIA GPU; Glyphwise on the processor alone: 23 s; Tesseract one page at a time: 98 s (Speed)total time21 s15 s3—2—

Lower is better for errors, higher for words found. Every engine ran with its standard English model, as a separate program on the same files, and was scored the same way (— = not run on that set). Glyphwise numbers are for the model that ships with the product.

Words found counts every word the page's text layer holds; much of the full-page lead comes from punctuation, dot leaders and form labels the other engines often leave out, so the row with letters and digits only is the closer contest. The photo copies are generated from the test pages, so their ground truth is exact.

1 TrOCR's printed-text model writes capital letters only, so it is not scored on documents. 2 PaddleOCR ran on the processor only, where it took minutes per page. 3 16 copies of Tesseract side by side, one thread each.

Test it on your own pages.

Your documents are the only benchmark that counts.