with one click
arabic-ocr
Arabic OCR text extraction from images and documents
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Menu
Arabic OCR text extraction from images and documents
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Based on SOC occupation classification
| name | arabic-ocr |
| description | Arabic OCR text extraction from images and documents |
| version | 1.0.0 |
| author | Mousa Abu Mazin |
| license | MIT |
| platforms | ["linux","macos"] |
| prerequisites | {"commands":["curl","tesseract","magick"],"env_vars":["HF_TOKEN"]} |
| metadata | {"hermes":{"tags":["media","ocr","arabic","image"]}} |
# macOS
brew install tesseract tesseract-lang imagemagick
# التأكد من دعم العربي
tesseract --list-langs | grep ara
tesseract IMAGE_FILE output -l ara
cat output.txt
tesseract IMAGE_FILE output -l ara+eng
# تحسين الصورة أولاً
magick IMAGE_FILE -resize 300% -sharpen 0x1 -threshold 50% improved.png
tesseract improved.png output -l ara --psm 6
تنبيه: توفر نماذج HuggingFace Inference API يتغير. تحقق من توفر النموذج قبل الاعتماد عليه في بيئة إنتاجية. إذا كان النموذج غير متاح، استخدم Tesseract المحلي.
# microsoft/trocr-large-printed — نموذج OCR عام قوي
curl -s -X POST "https://api-inference.huggingface.co/models/microsoft/trocr-large-printed" \
-H "Authorization: Bearer $HF_TOKEN" \
-H "Content-Type: image/png" \
--data-binary @IMAGE_FILE
# للنصوص العربية تحديداً، جرّب:
# yazeed7/arabic-trocr أو أي نموذج عربي متاح على HuggingFace
curl -s -X POST "https://api-inference.huggingface.co/models/yazeed7/arabic-trocr" \
-H "Authorization: Bearer $HF_TOKEN" \
-H "Content-Type: image/png" \
--data-binary @IMAGE_FILE
| الوضع | الاستخدام |
|---|---|
--psm 3 | تلقائي (افتراضي) |
--psm 6 | كتلة نص واحدة (الأفضل للمستندات) |
--psm 7 | سطر واحد |
--psm 8 | كلمة واحدة |
--psm 13 | نص خام بدون OSD |
Adhan audio playback with multiple muezzin voices
مراجعة كود عربي — راجع الكود مع فحص التعامل مع النصوص العربية وRTL والتعليقات العربية
مصطلحات صحية عربية — ترجم واشرح مصطلحات طبية بالعربي، ساعد في فهم التقارير الطبية
مصطلحات قانونية عربية — ترجم واشرح مصطلحات قانونية، ساعد في فهم العقود والمستندات القانونية بالعربي
كاتب السيرة الذاتية — اكتب سيرة ذاتية احترافية بالعربي أو ثنائية اللغة
Arabic Siri integration for Hermes — trigger agent tasks via Arabic voice commands through Apple Shortcuts