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.mdSao 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
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
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 | Notes | |
|---|---|---|
| Baidu | yes | pdf_file parameter |
| Azure | yes | Document Intelligence native support |
| PaddleOCR | yes | pdf + fileType=0 |
| 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
Bình luận
- …
Thêm skill từ kho mã này
yao-agent
8.3kGiúp agent của bạn liệt kê các agent trên một host Yao, tra cứu hoặc tải mã agent, triển khai thay đổi và kiểm tra danh sách bộ kết nối mô hình.
yao-audio
8.3kGiúp agent của bạn chuyển giọng nói trong file âm thanh, như bản ghi cuộc họp, thành văn bản và tự nhận diện ngôn ngữ nếu bạn không chọn.
yao-board
8.3kGiúp agent của bạn kiểm tra bảng kanban và trạng thái công việc trên nền tảng Yao, để báo cáo tiến độ dự án thật thay vì đoán mò.
yao-daemon
8.3kGiúp agent của bạn khởi động, kiểm tra, khởi động lại và dừng các dịch vụ chạy nền lâu dài, như máy chủ phát triển, và đọc những gì chúng in ra.
Skill tương tự
gitcrawl
394kCho phép agent của bạn tìm trong kho lưu trữ issue và pull request GitHub, gom các mục trùng lặp và kiểm tra trạng thái hiện tại trên GitHub.
slacrawl
394kCho phép agent của bạn tìm và đếm tin nhắn trong kho lưu trữ Slack cục bộ, kiểm tra kho đó mới đến mức nào và làm mới khi cần.
goplaces
394kGiúp agent của bạn tìm địa điểm, lấy chi tiết và đánh giá, và xác định tên địa điểm bằng Google Places, với đầu ra JSON cho script.