Install
$ agentstack add skill-moshe-ship-hurmoz-arabic-ocr ✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.
Security review
✓ PassedNo issues found. Passed automated security review. · v0.1.0 How review works →
- ✓ Prompt-injection patterns
- ✓ Secret / credential exfiltration
- ✓ Dangerous shell & filesystem operations
- ✓ Untrusted network calls
- ✓ Known-malicious package signatures
What it can access
- ● Network access Used
- ✓ Filesystem access No
- ✓ Shell / process execution No
- ✓ Environment & secrets No
- ✓ Dynamic code execution No
From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.
Verified badge
Passed review? Show it. Paste this badge into your README, it links to the public security report.
Reliability & compatibility
Declared compatibility
Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.
We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.
How agent discovery & health will work →About
التعرف على النص العربي (OCR)
Tesseract (محلي — الخيار الأساسي والمجاني)
تثبيت
# 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
TrOCR عبر HuggingFace (بديل سحابي — اختياري)
> تنبيه: توفر نماذج 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 (Page Segmentation Modes)
| الوضع | الاستخدام | |-------|-----------| | --psm 3 | تلقائي (افتراضي) | | --psm 6 | كتلة نص واحدة (الأفضل للمستندات) | | --psm 7 | سطر واحد | | --psm 8 | كلمة واحدة | | --psm 13 | نص خام بدون OSD |
متى تستخدم
- المستخدم يرسل صورة فيها نص عربي
- يريد استخراج نص من مستند PDF ممسوح
- يريد قراءة مخطوطة أو وثيقة قديمة
- يريد تحويل صورة واتساب فيها نص لنص قابل للنسخ
القواعد
- ابدأ دائماً بـ Tesseract المحلي — يعمل بدون إنترنت وبدون مفاتيح API
- الصور الواضحة عالية الدقة تعطي نتائج أفضل
- المخطوطات والخطوط المزخرفة تكون أقل دقة — نبّه المستخدم
- إذا النتيجة ضعيفة، اقترح تحسين الصورة أولاً بـ magick
- نماذج HuggingFace اختيارية وقد لا تكون متاحة دائماً
Source & license
This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.
- Author: Moshe-ship
- Source: Moshe-ship/hurmoz
- License: MIT
Install and usage instructions live in the source repository linked above.
Reviews
No reviews yet, be the first.
Write a review
Versions
- v0.1.0 Imported from the upstream source.