Skillpedia
PDF وWord والعروض التقديمية12k · #11572

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) واطلب منه اتباع التعليمات.

طريقة الاستخدام

أسهل طريقة: انسخ الرسالة والصقها في الذكاء الاصطناعي الذي تستخدمه. سيقرأ المهارة وينفّذ تعليماتها.

رسالة جاهزة للصق

استخدم هذه المهارة لمساعدتي: https://github.com/EKKOLearnAI/ekko-studio/blob/main/packages/ekko-agent/skills/ocr-and-documents/SKILL.md اقرأ ملف SKILL.md في هذا الرابط ونفّذ تعليماته لمهمتي.
تريد أن يجد الذكاء الاصطناعي مهارات مثل هذه بنفسه؟ثبّت خادم Skillpedia MCP المجاني: سطر واحد، ويبحث في 15,000+ مهارة قبل كل مهمة.ثبّته في دقيقة واحدة →

مثال على ما تطلبه من الذكاء الاصطناعي

“ملف 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

  1. Normal extraction first. For PDFs, try the bundled pdf Skill. For .docx, use docx. Do not OCR born-digital text.
  2. A few scanned pages. Render pages with the pdf Skill and inspect images using view_image; transcribe only the requested pages.
  3. Text-oriented scanned PDF. Try extract_pymupdf.py; this is the lighter local path.
  4. 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

هل هذه المهارة مفيدة؟

0

سجّل الدخول للتصويت.

التعليقات

  • …

المزيد من المهارات من هذا المستودع

مهارات مشابهة