AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
SKILL verified MIT Self-run

Arabic Ocr

skill-moshe-ship-hurmoz-arabic-ocr · by Moshe-ship

Arabic OCR text extraction from images and documents

No reviews yet
0 installs
43 views
0.0% view→install

Install

$ agentstack add skill-moshe-ship-hurmoz-arabic-ocr

✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.

Verified badge

Passed review? Show it. Paste this badge into your README, it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/skill-moshe-ship-hurmoz-arabic-ocr)

Reliability & compatibility

Security review passed
0 installs to date
no reviews yet
3mo ago

Declared compatibility

Claude CodeClaude Desktop

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

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 →
Are you the author of Arabic Ocr? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

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.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet, be the first.

Versions

  • v0.1.0 Imported from the upstream source.