Chuyển đến nội dung
Skillpedia
Phân tích và bảng tính8.3k · #12477

yao-ocr

Skill này làm gì

Skill này đọc chữ từ ảnh quét và file PDF, như hóa đơn, biên lai và bảng biểu. Dành cho người cần chuyển chữ in hoặc chữ viết tay thành văn bản có thể chỉnh sửa.

Khi nào nên dùng

  • ✓Khi bạn có hóa đơn hoặc biên lai đã quét và cần chi tiết của nó dưới dạng văn bản.
  • ✓Khi một file PDF là bản quét và bạn cần văn bản của nó để tìm kiếm hoặc chỉnh sửa.
  • ✓Khi một bảng trong hình ảnh cần chuyển sang định dạng bạn có thể làm việc được.

Liên kết skill

https://github.com/YaoApp/yao/blob/main/tools/skills/yao-ocr/SKILL.md

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/YaoApp/yao/blob/main/tools/skills/yao-ocr/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Trích xuất tất cả số tiền và các mục trong hóa đơn PDF quét này thành một bảng.”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Agent gửi hình ảnh hoặc PDF đến một công cụ nhận dạng chữ, có thể là mô hình thị giác hoặc dịch vụ OCR truyền thống. Kết quả trả về là văn bản thuần, bảng markdown hoặc dữ liệu có cấu trúc.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.

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 PDF Notes
Baidu yes pdf_file parameter
Azure yes Document Intelligence native support
PaddleOCR yes pdf + fileType=0
Google no
Câu hỏi thường gặp

Có những định dạng đầu ra nào?

Văn bản thuần, bảng markdown và dữ liệu có cấu trúc như JSON.

Tôi có thể chọn khoảng trang không?

Có. Với PDF, bạn có thể chọn một khoảng trang.

Nó có xử lý chữ viết tay không?

Skill liệt kê tài liệu viết tay trong phạm vi hỗ trợ, nhưng kết quả phụ thuộc vào công cụ được dùng.

Chi tiết

Mô tả gốc của tác giả

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

Độ phổ biến

Sao GitHub
8.3k
Vị trí xếp hạng
#12477
Giấy phép
—
Cập nhật
19/10/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự