yao-ocr
ما الذي تفعله
تقرأ هذه المهارة النص من الصور الممسوحة وملفات PDF، مثل الفواتير والإيصالات والجداول. وهي موجهة للأشخاص الذين يحتاجون إلى تحويل نص مطبوع أو مكتوب بخط اليد إلى نص قابل للتحرير.
متى تستخدمها
- ✓عندما تملك فاتورة أو إيصالًا ممسوحًا وتحتاج إلى تفاصيله نصًا.
- ✓عندما يكون ملف PDF ممسوحًا وتحتاج إلى نصه ليكون قابلًا للبحث أو التحرير.
- ✓عندما يحتاج جدول في صورة إلى التحول إلى صيغة تستطيع العمل بها.
رابط المهارة
https://github.com/YaoApp/yao/blob/main/tools/skills/yao-ocr/SKILL.mdانسخه والصقه في الذكاء الاصطناعي الذي تستخدمه (Claude أو ChatGPT أو Cursor) واطلب منه اتباع التعليمات.
طريقة الاستخدام
أسهل طريقة: انسخ الرسالة والصقها في الذكاء الاصطناعي الذي تستخدمه. سيقرأ المهارة وينفّذ تعليماتها.
رسالة جاهزة للصق
لـ Claude Code أو Codex أو Cursor: شغّله داخل مجلد مشروعك وستُثبَّت المهارة.
نزّل ملف SKILL.md وضعه في مجلد مهارات وكيلك.
مثال على ما تطلبه من الذكاء الاصطناعي
“استخرج كل المبالغ والبنود من فاتورة PDF الممسوحة هذه في شكل جدول.”
5 مهارات جديدة كل أسبوع. قراءة في دقيقة واحدة.
كيف تعمل
يرسل الوكيل الصورة أو ملف PDF إلى محرك التعرف على النص، وقد يكون نموذج رؤية أو خدمة OCR تقليدية. ويعيد نصًا عاديًا أو جدول Markdown أو بيانات منظمة.
المحتوى التقني (ملف SKILL.md الأصلي)
النص الأصلي من المؤلف، مباشرة من GitHub.
OCR Tools
Two tools for optical character recognition, supporting both VLM-OCR (vision language models) and traditional OCR APIs (Baidu, Google, Azure, PaddleOCR).
ocr_recognize
Extract text from images or PDF files using OCR.
Basic usage (plain text output):
tai tool ocr_recognize --source /path/to/image.png
With URL:
tai tool ocr_recognize --source https://example.com/document.jpg
Table extraction as Markdown:
tai tool ocr_recognize --source /path/to/table.png --type table --output_format markdown
Invoice structured extraction:
tai tool ocr_recognize --source /path/to/invoice.pdf --type invoice --output_format json
With specific provider:
tai tool ocr_recognize --source /path/to/doc.png --provider baidu
VLM-OCR with custom prompt:
tai tool ocr_recognize --source /path/to/doc.png --provider llm:qwen-ocr --prompt "只提取表格中的金额列"
PDF page range:
tai tool ocr_recognize --source /path/to/report.pdf --pages "1-5" --output_format markdown
| Parameter | Type | Required | Description |
|---|---|---|---|
| source | string | yes | Image or PDF file path/URL to recognize |
| provider | string | no | LLM connector ID (llm:xxx) or OCR settings key (baidu/paddleocr/google/azure). Auto-selects if omitted |
| type | string | no | Recognition type (default: general). See type table below |
| output_format | string | no | text (default), json (with coordinates/fields), or markdown (structured) |
| mode | string | no | accurate (default, best quality) or standard (faster) |
| language | string | no | Language hint (ISO 639-1, e.g. en, zh, ja). Auto-detected if omitted |
| prompt | string | no | Custom instruction for VLM-OCR only, appended to system prompt. Ignored by traditional OCR |
| pages | string | no | PDF page range, e.g. 1-5 or 1,3,7. All pages if omitted |
| extra | JSON | no | Provider-specific parameters as a JSON object |
Recognition types
| Type | Description | Best output_format |
|---|---|---|
general |
General text (default) | text |
table |
Table extraction | markdown |
handwriting |
Handwritten text | text |
document |
Document layout parsing | markdown |
invoice |
Invoice (VAT) | json |
receipt |
Receipt / ticket | json |
id_card |
ID card | json |
bank_card |
Bank card | json |
license |
Business license | json |
vehicle_license |
Vehicle license | json |
passport |
Passport | json |
license_plate |
License plate | json |
If the chosen provider does not support the requested type, it automatically degrades to general and annotates the response metadata with degraded_from. VLM-OCR supports all types via prompt adaptation.
ocr_providers
List available OCR providers and their supported recognition types.
tai tool ocr_providers
Returns a list of providers including VLM-OCR models (from LLM connectors with ocr capability) and traditional API providers (from OCR settings). Each entry includes id, name, type (vlm or traditional), and supported_types.
PDF support
| Provider | Notes | |
|---|---|---|
| Baidu | yes | pdf_file parameter |
| Azure | yes | Document Intelligence native support |
| PaddleOCR | yes | pdf + fileType=0 |
| no |
الأسئلة الشائعة
ما صيغ المخرجات؟
نص عادي، وجداول Markdown، وبيانات منظمة مثل JSON.
هل أستطيع اختيار نطاق الصفحات؟
نعم، بالنسبة إلى ملفات PDF يمكنك اختيار نطاق من الصفحات.
هل تتعامل مع الخط اليدوي؟
تذكر المهارة المستندات المكتوبة بخط اليد ضمن ما تغطيه، وإن كانت النتائج تعتمد على المحرك المستخدم.
التفاصيل
الوصف الأصلي من المؤلف
OCR text recognition expert. ALWAYS invoke this skill when you need to extract text from images or PDFs — including invoices, receipts, ID cards, bank cards, business licenses, tables, handwritten documents, or any visual text content.
repo: YaoApp/yao
الشعبية
- نجوم GitHub
- 8.3k
- الترتيب
- #12477
- الترخيص
- —
- آخر تحديث
- 19/10/2026
التعليقات
- …
المزيد من المهارات من هذا المستودع
yao-agent
8.3kيساعد وكيلك على سرد الوكلاء على خادم Yao، والبحث عن كود الوكلاء أو تنزيله، ونشر التغييرات، والتحقق من قائمة موصلات النماذج.
yao-audio
8.3kيساعد وكيلك على تحويل الكلام في الملفات الصوتية، مثل تسجيلات الاجتماعات، إلى نص مكتوب، مع اكتشاف اللغة إذا لم تحددها.
yao-board
8.3kيساعد وكيلك على فحص لوحات كانبان وحالة المهام على منصة Yao، ليقدّم تقدمًا حقيقيًا للمشروع بدل التخمين.
yao-daemon
8.3kيساعد وكيلك على تشغيل الخدمات الطويلة الخلفية وفحصها وإعادة تشغيلها وإيقافها، مثل خوادم التطوير، وقراءة ما تطبعه.
مهارات مشابهة
gitcrawl
394kيتيح لوكيلك البحث في أرشيف محفوظ لمشكلات GitHub وطلبات السحب، وتجميع المكرر منها، والتحقق من حالتها الحالية على GitHub.
slacrawl
394kيتيح لوكيلك البحث في رسائل Slack داخل أرشيف محلي وعدّها، والتحقق من مدى حداثة الأرشيف، وتحديثه عند الحاجة.
goplaces
394kيساعد وكيلك على البحث عن الأماكن وعرض تفاصيلها وتقييماتها وتحديد أسمائها عبر Google Places، مع مخرجات JSON للسكربتات.