Kindi HTRv0.5 previewUnder development

Reading Arabic handwriting

Ruq‘ah, Ta‘liq, Nastaliq, Naskh, and Maghrebi. A model that reads historical Arabic handwriting, scored on the same lines in every version.

8.83%Character error rate, all five scripts95% interval: 8.45–9.26
A manuscript page from our handwriting test: British Library, Or 13006.Public domain, British Library

The test

A fixed exam: the same lines and the same score, for every system and every version.

Scripts
Five historical Arabic scripts: Ruq‘ah, Ta‘liq, Nastaliq, Naskh, and Maghrebi.
Unit
A handwritten line, compared with its true text.
Metric
Character error rate, with a 95% interval for every system.
Rule
A new version is only compared on the same exam.

The result

Six systems on the same exam.

Character error rate across the five scriptsLower is better
Character error rate across the five scripts. The whiskers at each bar show the 95% interval.
SystemCharacter error rate95% interval
Kindi v0.5 preview8.83%8.45–9.26
HATFormer21.46%20.89–22.04
sdkv237.36%36.81–37.93
Mistral OCR v4.139.49%38.44–40.57
Qari-OCR v0.347.93%47.01–48.88
Tesseract62.83%62.22–63.49

The whiskers at each bar show the 95% interval.

A gap luck doesn't explain

Our upper bound, 9.26%, sits under HATFormer's lower bound, 20.89%. The intervals don't overlap.

See the full benchmark table

Script by script

The gap to HATFormer, one script at a time, on a wider test of 8,136 lines that adds Oriental and modern hands.

Kindi v0.5 preview against HATFormer, per script
Kindi v0.5 preview against HATFormer, per script
ItemHATFormerKindi v0.5 preview
Oriental32.0%3.7%
Ruq‘ah17.9%5.8%
Nastaliq20.7%8.2%
Ta‘liq13.4%8.8%
Naskh21.2%9.8%
Maghrebi33.9%10.4%
Modern41.4%15.3%

Character error rate, lower is better.

The biggest gain is in Oriental: from 32.0% to 3.7%. The hardest script is still Modern, at 15.3%. On modern handwriting, three other systems we tested read better than Kindi HTR.

See the full benchmark table

How it's built

In development, and work continues.

A model for handwriting
Handwriting has its own model and print has its own, so learning handwriting never weakens how print is read.
An exam that doesn't move
Every new version is scored on the same lines, so scores can be compared between versions.
On our GPUs
Training and serving run on GPUs we operate in Saudi Arabia.

Have manuscripts or handwritten records?

We'll read a sample and tell you the error rate on it before you commit to anything.

I'm interestedTry it in the playgroundKindi OCR: print