Downloads · 30 days
30
26% of all-time downloads
Ghazouaniwala/trocr-tunisian-arabic
trocr-tunisian-arabic is a image-to-text model from Ghazouaniwala. Use it when you need a caption or text from an image. The card lists the license as mit.
A TrOCR vision-encoder/decoder fine-tuned for handwritten Tunisian Arabic, with a 30k-token Arabic-native vocabulary.
Downloads · 30 days
30
26% of all-time downloads
All-time downloads
115
Public
Parameters
537M
2.1 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors2.1 GB · 100%
From the Hugging Face model README
A TrOCR vision-encoder/decoder fine-tuned for handwritten Tunisian Arabic, with a 30k-token Arabic-native vocabulary.
Cloud OCR services handle printed Arabic reasonably and handwritten dialectal Arabic poorly. For the use case this was built for, they were not an option at all: Tunisian legal documents contain privileged client data that cannot leave the premises under the country's data-protection regime. That ruled out every managed service and required a model that runs fully offline.
Offline extraction of handwritten Arabic from structured forms.
Built for and deployed in Wathiqa, which turns handwritten Tunisian legal forms into structured, searchable client records without any cloud dependency.
This is a word-level model. In Wathiqa it sits behind a segmentation stage: the ink mask is dilated horizontally by a kernel scaled to text height — Arabic joins letters within a word but not between words, so inter-word gaps are the reliable separator — and the resulting components are read right to left. Feeding a full unsegmented line will not work well.
Wathiqa routes each field type to a purpose-built engine rather than asking one model to cover everything:
| Field type | Engine |
|---|---|
| Arabic text, names, notes | This model |
| CIN, passport, number, phone, date | Dedicated digit recogniser with a constrained alphabet and shape validation |
| Printed captions | EasyOCR (Arabic + Latin) |
| Checkboxes | Fill-ratio detector |
| Signatures | Ink-presence detector |
That routing exists because these are genuinely different problems, and the limitations below are the reason.
0-9 and separators, then validates the assembled value against the field's expected shape.Fine-tuned from microsoft/trocr-base-handwritten on handwritten Tunisian Arabic, with the decoder vocabulary replaced by a 30k-token Arabic-native vocabulary.
| Model | Purpose |
|---|---|
Ghazouaniwala/emotions_speech | Speaker-independent speech emotion recognition |
Ghazouaniwala/silma-tts-derja | Tunisian Derja speech synthesis |
@misc{ghazouani2025trocrtunisian,
author = {Ghazouani, Wala Eddine},
title = {trocr-tunisian-arabic: handwritten Tunisian Arabic recognition},
year = {2025},
url = {https://huggingface.co/Ghazouaniwala/trocr-tunisian-arabic}
}
Built by Wala Eddine Ghazouani · GitHub · LinkedIn