Repository navigation
Releases
Releases · RebinMA/Kurdish-OCR
v1.0.0 — first public release
First public release of Kurdish OCR, a REST API and web demo that turns images and PDFs of Sorani Kurdish text into editable Unicode text.
Live demo: https://ocr.rebin.info
Highlights
- Synchronous OCR for single images:
POST /api/v1/ocr - Asynchronous documents for PDFs and images, processed page by page on a dedicated queue:
POST /api/v1/documents - Sorani-aware text cleanup: Arabic look-alike letters mapped to Sorani (
ي/ى→ی,ك→ک), tatweel removed, whitespace tidied, while keepingەand ZWNJ intact - Image preprocessing (grayscale, upscaling of small images) for better accuracy
- Optional confidence score per request
- Sanctum token auth, with tokens issued by
php artisan ocr:token - Rate limiting per user (API) and per IP (demo)
- Privacy by default: random file names on a private disk, uploads deleted after processing, finished documents pruned after 7 days
- Public web demo with drag-and-drop, file picker and paste-a-screenshot
- Docker Compose setup (app, queue worker, scheduler)
- Tests: unit, feature and real-Tesseract integration tests, plus Pint, PHPStan and CI on PHP 8.5
Stack
Laravel 13 · PHP 8.5 · Tesseract 5 · Poppler · SQLite
Model
The demo runs the custom-trained Sorani model ckb-v1.0. The model file is not part of this repository or release; it will be published separately under its own license.
Getting started
See the README for setup, configuration, the full API reference and Docker usage.
Known limitations
- Best on clear printed text: screenshots, scans and clean photos
- Handwriting, heavily degraded scans and complex multi-column layouts are not yet supported well
- Text mixing Kurdish with other scripts may be less accurate
What's next
- Model
ckb-v1.1, fine-tuned on real scanned text - Public model release and evaluation results