Kurdish OCR: Turning Scans into Searchable Text

Kurdish OCR for archives, schools and offices: how to capture good scans, test Sorani engines, check accuracy and store searchable results.

Kurdish OCR: Turning Scans into Searchable Text

Many archives, schools and offices in the Kurdistan Region hold shelves of Kurdish books, exam papers, letters and forms that exist only on paper or as flat scans. Nobody can search them, quote them or reuse them without retyping. Kurdish OCR, which turns images of Sorani text into real Unicode text, has improved this year. It is still not a button you can press and trust.

This guide is for people who want to start properly. It covers how to capture good images, how to choose and test an engine, where accuracy runs out, and how to store the results so someone can find them in ten years.

Why Kurdish OCR is worth another look now

Research on Sorani OCR has moved quickly. In September 2026, a peer-reviewed paper in Algorithms described a Sorani OCR system with four parts: synthetic training data, script-aware normalisation (cleaning up characters that look alike in Arabic and Kurdish), synthetic text-line images and a TrOCR-style transformer model. The same paper notes that recent Kurdish datasets focus on handwriting or text in street and sign photos, and that printed Sorani document-line OCR still has no public benchmark.

Several other projects point the same way:

  • KurdishMCQ. Researchers built a Sorani exam-question dataset by scanning paper-only sources and running them through an OCR model fine-tuned from Gemma 3. No large Sorani training set existed, so they generated synthetic data. The output still had recognition errors. Native speakers checked it, and about 5,000 reviewed questions were used to retrain the model.
  • Tesseract on 1930s books. A 2024 study fine-tuned Tesseract on early Kurdish books, supplied as digital copies by the Zheen Center in Sulaymaniyah. On the study's own test data it reported a character error rate of 0.755%.
  • Kurdish-OCR. An open-source REST API built on Laravel, PHP and Tesseract 5 was released for Sorani images and PDFs. Its custom model will be published separately, and evaluation results are planned.

The message for practitioners is simple. Tools are improving, there is no agreed benchmark, and you must test on your own pages.

Capture: the scan decides most of the result

No engine can fix a bad image. In my experience, capture problems explain most poor OCR results.

  • Equipment. Use a flatbed or overhead scanner for books and archive material. For everyday office paperwork, a phone is fine if you use a scanning app that corrects perspective.
  • Light and framing. Use flat, even light, with no shadows, glare or fingers in the frame. Keep the page square, in focus and cropped to its edge.
  • Resolution. Do not guess. Scan a sample at two settings, run OCR on both and compare the results.
  • Master images. Keep an uncompressed or lightly compressed master and never overwrite it. Sorani engines are improving, and you will want to re-run OCR later without scanning again.
  • Realistic expectations. Photocopies of photocopies, carbon copies, stamps across the text and handwriting all lower accuracy, whatever engine you use.

Choosing an engine for Sorani

There are two broad routes: local open-source tools and cloud services.

Local tools. Tesseract is the usual local choice. Its official "kur" data file was not updated after version 3.04. Community-trained Central Kurdish (ckb) models are available, such as Shreeshrii's tesstrain-ckb for Sorani in Arabic script. The models in tessdata_best and tessdata_fast only work with the LSTM engine (--oem 1).

Cloud services. Azure Vision Read lists printed Kurdish as ku-arab (Arabic script) and ku-latn (Latin script). Microsoft advises against forcing a language code unless you are sure of the language, because doing so may return incomplete and incorrect text. Users on Microsoft Q&A have reported that Azure extracted Sorani text with clear differences from the original, although those threads are around two years old. Mistral's supported-languages page does not list Kurdish. Always check a vendor's current documentation before you commit.

Before choosing any cloud tool, classify your documents. ID cards, student records and HR files should not leave your network, and they should never be pasted into consumer chatbots.

Situation Sensible option
Sensitive files (IDs, student records, HR) Run OCR locally with Tesseract, a ckb model and OCRmyPDF, so nothing leaves your network
Large mixed archive, not sensitive Run a cloud service (such as Azure Read) and a local Tesseract ckb model on the same sample and compare
Old print (1930s–1970s), unusual fonts Plan to fine-tune or to review by hand; research shows fine-tuning helps
Handwriting Treat it as a pilot only; research is still at the dataset stage
Mixed Kurdish/Arabic/English pages Leave cloud auto-detection on; with Tesseract, combine models (e.g. -l ckb+ara+eng) and test

Sometimes you just need to read a single non-sensitive page, such as a textbook paragraph, a notice or a handout. For that, Kurd.AI, which I founded, has a photo-to-text tool for Kurdish, along with a spelling checker. It is handy for students and teachers. For bulk or confidential work, though, build a proper pipeline.

Measuring accuracy without a lab

You do not need a research team to know whether an engine is good enough.

  1. Pick 20–30 pages that represent your collection: different decades, fonts and paper quality.
  2. Ask someone to type a correct version of a few paragraphs from those pages.
  3. Compare that text with the OCR output and count the errors.
  4. Decide in advance what "good enough" means.

The right standard depends on the use. If the text is only for search, a document can still be found despite some errors. Anything that will be quoted, published or used officially needs a person to review it.

The limits, and the clean-up step after OCR

Even fine-tuned models make mistakes, and the KurdishMCQ team still needed native speakers to check their output. AI vision models add a particular risk. They can produce fluent text that reads well but does not match the page. Treat their output as a draft, not a record.

After OCR, watch for characters that look the same in Arabic and Kurdish, such as ي/ی, ك/ک and ه/ە, and normalise them so search works consistently. The September paper treats script-aware normalisation as a core step. If your collection also contains old digital files typed in Ali-K fonts, my earlier post on converting Ali-K to Unicode covers that next step.

Storing and naming the results

OCR is only useful if people can find the output later. For each document, keep three files:

  • The master image, untouched.
  • A searchable PDF, preferably PDF/A for long-term storage.
  • A plain-text sidecar, for search and indexing.

OCRmyPDF produces the searchable PDF and the text sidecar. It adds a text layer under the original image without reducing its resolution, outputs PDF/A by default, can deskew pages, and runs on Linux, macOS, Windows and FreeBSD. Here is an example, which assumes the ckb traineddata file is already installed in your tessdata folder:

# Example only: requires ckb.traineddata in your tessdata folder
ocrmypdf -l ckb+eng --deskew --output-type pdfa --sidecar page.txt input.pdf output.pdf

If some pages already contain text, --skip-text leaves them alone.

Use one naming pattern across the whole collection, for example org_collection_yyyy-mm-dd_docID_p001. Keep a simple metadata sheet with these fields:

  • title
  • author or issuer
  • date
  • source or location
  • language and dialect
  • script
  • OCR engine and model version
  • reviewed (yes/no)
  • access level

Then load everything into a document management system with search and access controls. paperless-ngx, which builds on OCRmyPDF, is one open-source option. Restrict access to people who need it and keep an off-site backup.

If you would rather not build this yourself, my company, Standing, provides hosting, security and application services and can help set up and host a local OCR and document pipeline.

A starter checklist

  • [ ] Classify documents by sensitivity before choosing any tool.
  • [ ] Scan a test batch with flat light and square, cropped pages, and keep the masters.
  • [ ] Test resolution on a sample instead of guessing.
  • [ ] Run at least one local engine and, for non-sensitive material, one cloud engine on the same 20–30 pages.
  • [ ] Count errors against a typed reference and agree a "good enough" level.
  • [ ] Normalise look-alike Arabic and Kurdish characters after OCR.
  • [ ] Save the master, a PDF/A and a text sidecar, using one naming pattern.
  • [ ] Record the engine, model version and review status for every document.
  • [ ] Store everything with access controls and an off-site backup.

Kurdish OCR is now good enough to make many collections searchable, but not good enough to trust without checking. Start small, measure on your own pages, and keep your master images. Then every improvement in Sorani models becomes a free upgrade to your archive.

Sources & further reading

  1. Synthetic Data-Driven Transformer OCR for Kurdish Sorani (Algorithms, MDPI, 2026)mdpi.com
  2. KurdishMCQ: A multiple-choice question dataset for Kurdish (Sorani) (PMC)pmc.ncbi.nlm.nih.gov
  3. Making Old Kurdish Publications Processable by Augmenting Available OCR Engines (arXiv)arxiv.org
  4. Language support for Azure Vision (Microsoft Learn)learn.microsoft.com
  5. Tesseract documentation: Traineddata filestesseract-ocr.github.io
  6. OCRmyPDF (GitHub)github.com

🤖 Researched and drafted with AI assistance, guided by my editorial standards. Spotted something wrong? Tell me.

Akam Omer
Written by

Akam Omer

IT leader, engineer and security specialist from Erbil with 20+ years across higher education, telecoms, healthcare and government. Founder of BulkSMSIraq, VerifyWay and Kurd.ai.