Kindi Labs

Teaching machines to read Arabic.

Models that read printed and handwritten Arabic, and search Arabic text. We test them on fixed exams and publish the numbers.

01Kindi OCRv1.0

Printed Arabic

Kindi OCR reads scanned Arabic newspapers and books, and returns text you can search and correct.

  1. 1

    Block by block

    The page is read one text block at a time, so columns and headlines don't run together.

  2. 2

    Line by line

    Each block is read line by line, and each word joined up the way it's written.

  3. 3

    Then we measure

    We compare the output with the true text, character by character, on 90 newspaper blocks.

For illustration: a page of Al-Muqtataf, June 1899 (public domain, via the Internet Archive). This page is not part of our test; the percentage is the result on the test described below it. Internet Archive

For illustration: a page of Al-Muqtataf, June 1899 (public domain, via the Internet Archive). This page is not part of our test; the percentage is the result on the test described below it. Internet Archive

On 90 newspaper blocks, each scored as a whole blockLower is better
On 90 newspaper blocks, each scored as a whole block. MDP-90. The whiskers at each bar show the 95% interval.
SystemCharacter error rate95% interval
Kindi OCR0.89%0.6–1.2
Mistral OCR v4.11.29%1–1.6
deep.sa OCR v2.02.63%1.9–3.7
PaddleOCR-VL 1.65.4%4.2–6.5
Tesseract6.53%4.5–9.3

MDP-90. The whiskers at each bar show the 95% interval.

Everything about Kindi OCR

02Kindi HTRUnder development

Handwriting

Handwriting is harder than print: every writer has their own hand, and every script has its own rules. Kindi HTR reads five historical Arabic scripts, and we score it on the same lines every time.

  1. قال الحكيم فيه لا يزال ربع الجسد يمسك الماء الذي هو ثلاثة اضعاف
  2. وقال ايسنا لا ينزل ربع الفضة يمسك النحاس وهو في هذه الدرجة
  3. يسمى الكبريت النقى ولذلك قال زيموس ان ما لكبريت النقى هو
A manuscript page from our handwriting test: British Library, Or 13006. Each line is found first, then read. The text shown is from an earlier version.Public domain, British Library
Where each interval sitsOur upper bound, 9.26%, sits under the closest system's lower bound, 20.89%. The intervals don't overlap.

Kindi v0.5 preview: 8.83% (8.45–9.26). HATFormer: 21.46% (20.89–22.04).

Script by script: Kindi HTR against HATFormer
Script by script: Kindi HTR against HATFormer
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%

Same lines, same score, for every script, on a wider test of 8,136 lines. Values are character error rates. On modern handwriting, three other systems we tested read better than Kindi HTR.

Everything about Kindi HTR

Playground

Run the models on your own pages.

Upload a scan or a photo, or start with one of our samples. Read the text line by line, see where each line was found, and take the JSON with you.

A sample page from the playground: Al-Muqtataf, June 1899 (public domain). The lines found are boxed.