ocr-and-documents
ما الذي تفعله
تستخرج هذه المهارة النص من الممسوحات والمستندات القائمة على الصور، التي لا تستطيع القراءة العادية التعامل معها. وهي مخصصة للأشخاص الذين يحتاجون إلى استعادة نص مستنداتهم الورقية أو ملفات PDF الممسوحة.
متى تستخدمها
- ✓عندما يكون لديك ملف PDF ممسوح ضوئيًا وتحتاج إلى نصه كمستند قابل للبحث.
- ✓عندما تملك صورة لمستند وتريد نسخ كلماته.
- ✓عندما يجب تحويل مستند ذو تخطيط معقد أو جداول أو معادلات إلى نص منظم.
رابط المهارة
https://github.com/EKKOLearnAI/ekko-studio/blob/main/packages/ekko-agent/skills/ocr-and-documents/SKILL.mdانسخه والصقه في الذكاء الاصطناعي الذي تستخدمه (Claude أو ChatGPT أو Cursor) واطلب منه اتباع التعليمات.
طريقة الاستخدام
أسهل طريقة: انسخ الرسالة والصقها في الذكاء الاصطناعي الذي تستخدمه. سيقرأ المهارة وينفّذ تعليماتها.
رسالة جاهزة للصق
لـ Claude Code أو Codex أو Cursor: شغّله داخل مجلد مشروعك وستُثبَّت المهارة.
نزّل ملف SKILL.md وضعه في مجلد مهارات وكيلك.
مثال على ما تطلبه من الذكاء الاصطناعي
“ملف PDF الممسوح لهذا العقد لا يحتوي على نص قابل للتحديد. هل يمكنك استخراج النص لي؟”
5 مهارات جديدة كل أسبوع. قراءة في دقيقة واحدة.
كيف تعمل
يجرّب الوكيل الاستخراج العادي أولًا، ثم أداة OCR محلية خفيفة قبل أداة تخطيط أثقل. ويُبقي ملفاتك على حاسوبك ما لم تسمح برفعها.
المحتوى التقني (ملف SKILL.md الأصلي)
النص الأصلي من المؤلف، مباشرة من GitHub.
OCR and scanned documents
Use this Skill when ordinary document extraction fails because the source is scanned, image-based, or layout-heavy.
Start here
Call skill_view for this Skill and use its returned baseDirectory. Helpers live in <baseDirectory>/scripts.
Prefer local processing. Do not upload a private document to an external OCR service unless the user explicitly authorizes that transfer.
Choose the lightest path
- Normal extraction first. For PDFs, try the bundled pdf Skill. For .docx, use docx. Do not OCR born-digital text.
- A few scanned pages. Render pages with the pdf Skill and inspect images using view_image; transcribe only the requested pages.
- Text-oriented scanned PDF. Try extract_pymupdf.py; this is the lighter local path.
- Complex layout, tables, math, or many scanned pages. Use extract_marker.py only after confirming the need and checking resources.
Helpers
python3 <baseDirectory>/scripts/extract_pymupdf.py input.pdf -o extracted.md
python3 <baseDirectory>/scripts/extract_marker.py --check
python3 <baseDirectory>/scripts/extract_marker.py input.pdf -o extracted.md
Run helpers with terminal_exec, using python3 as the command and arguments as an array. Use --help for exact options.
extract_pymupdf.py requires PyMuPDF:
python3 -m pip install pymupdf
Its --markdown mode additionally requires pymupdf4llm.
extract_marker.py uses marker-pdf, which can require several gigabytes of packages and model downloads. Never install it automatically. Check available disk space and ask the user before installing or downloading large models.
URLs
If the source is a URL, first use an available browser or HTTP tool to identify whether it points to HTML or a document. Download only the requested document, respect authentication and access boundaries, and then process the local copy. Do not assume a specific web tool exists.
Verification
- Preserve reading order, page references, headings, tables, footnotes, and confidence caveats.
- Compare extracted text against representative rendered pages with view_image.
- Mark uncertain characters and fields instead of guessing.
- For tables, verify column alignment and numeric values separately.
- Return both the extracted artifact path and the original source/page mapping when possible.
الأسئلة الشائعة
هل سيُرسل مستندي إلى خدمة على الإنترنت؟
لا. تفضّل المهارة المعالجة المحلية، ولا ترفع مستندًا خاصًا إلا إذا سمحت بذلك صراحةً.
متى لا يجب استخدام OCR؟
مع ملفات PDF النصية أو ملفات Word، حيث يعمل الاستخراج العادي أصلًا، فلا حاجة إلى OCR.
متى تُستخدم الأداة الأثقل؟
فقط بعد أن يتأكد الوكيل أنها لازمة، ويتحقق من أن الحاسوب يملك الموارد اللازمة لها.
التفاصيل
الوصف الأصلي من المؤلف
Extract and structure text from scanned PDFs and document images with a local-first OCR workflow, layout-aware fallbacks, and explicit heavyweight dependency controls.
repo: EKKOLearnAI/ekko-studio
الشعبية
- نجوم GitHub
- 12k
- الترتيب
- #11572
- الترخيص
- —
- آخر تحديث
- 2/11/2026
التعليقات
- …
المزيد من المهارات من هذا المستودع
1password
12kيساعد وكيلك على استخدام واجهة 1Password السطرية للحصول على الأسرار للأوامر وملفات الإعداد، دون إظهارها في المحادثة أو السجلات أو الملفات المحفوظة.
apple-notes
12kيساعد وكيلك على إنشاء ملاحظات Apple والبحث فيها وقراءتها وتعديلها ونقلها وحذفها على Mac، باستخدام أداة سطر الأوامر memo.
apple-reminders
12kيساعد وكيلك على عرض التذكيرات وقوائمها في Apple Reminders على Mac وإنشائها وتعديلها وإكمالها وحذفها، باستخدام أداة remindctl.
document-to-action-items
12kيساعد وكيلك على تحويل مستند أو نص اجتماع أو مجموعة ملاحظات إلى جدول واضح بالمهام والمسؤولين والمواعيد النهائية والقرارات.
مهارات مشابهة
feishu-doc
394kيساعد وكيلك على قراءة مستندات Feishu السحابية وإنشائها وتعديلها، بما فيها النصوص والصور والجداول، باستخدام أداة المستندات.
feishu-drive
394kيتيح لوكيلك تصفح الملفات في مجلد سحابي على Feishu شاركته مع البوت، وتنظيمها، والتعليق عليها.
feishu-perm
394kيساعد وكيلك على معرفة من يستطيع الوصول إلى ملف Feishu وتغيير ذلك، مع اختيار أدنى صلاحية تلبي طلبك.