Community编程与开发github.com

yescan-ai/yescan-skill

夸克扫描王 — 为 OpenClaw Agent 打造的三大文档 AI 技能包:OCR 文字识别(17 场景)、文件扫描增强(13 模式)、图片转 Office(Word/Excel/PDF),一个 API Key 解锁全部 30+ 能力,`openclaw skills install` 即可使用

yescan-skill 是什么?

yescan-skill is a Claude Code agent skill that 夸克扫描王 — 为 OpenClaw Agent 打造的三大文档 AI 技能包:OCR 文字识别(17 场景)、文件扫描增强(13 模式)、图片转 Office(Word/Excel/PDF),一个 API Key 解锁全部 30+ 能力,`openclaw skills install` 即可使用.

兼容平台~Claude Code~Codex CLI~Cursor
npx skills add yescan-ai/yescan-skill

Installed? Explore more 编程与开发 skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →

在你喜欢的 AI 中提问

打开一个已预加载此 Agent Skill 的新对话。

文档

yescan-skill 是做什么的?

Quark Scanner — A three-in-one document AI skill pack for OpenClaw Agent: OCR text recognition (17 scenarios), document scanning enhancement (13 modes), and image-to-Office conversion (Word/Excel/PDF). Unlock 30+ capabilities with a single API key, ready with openclaw skills install.

Overview

This skill integrates the Quark Scanning King (夸克扫描王) API into your OpenClaw Agent, giving it powerful document understanding and generation abilities. Whether you need to extract text from photos, enhance scanned documents, or convert images into editable Office files, this skill has you covered.

Features

  • OCR Text Recognition: Supports 17 common document scenarios including ID cards, bank cards, invoices, receipts, handwritten notes, printed text, business cards, and more. Returns structured text with layout information.
  • Document Scanning Enhancement: Apply 13 enhancement modes such as perspective correction, shadow removal, contrast adjustment, binarization, color enhancement, and noise reduction to improve document readability.
  • Image-to-Office Conversion: Convert images directly into:
    • Word (.docx) – editable text documents
    • Excel (.xlsx) – spreadsheets with detected tables
    • PDF (.pdf) – searchable and compressed PDFs
  • Single API Key: Access all 30+ capabilities using one API key obtained from the Quark Scanner developer portal.

Installation

openclaw skills install yescan-ai/yescan-skill

Configuration

Set the following environment variable or pass it during agent initialization:

YESCAN_API_KEY=your_api_key_here

Usage

Example 1: Recognize text from an image

result = await agent.execute("yescan-ai/yescan-skill", {
  "action": "ocr",
  "image_url": "https://example.com/receipt.jpg",
  "scenario": "receipt"
})
print(result.text)

Example 2: Enhance a scanned document

result = await agent.execute("yescan-ai/yescan-skill", {
  "action": "enhance",
  "image_url": "https://example.com/scan.jpg",
  "mode": "perspective_correction"
})
print(result.enhanced_image_url)

Example 3: Convert image to Excel

result = await agent.execute("yescan-ai/yescan-skill", {
  "action": "convert",
  "image_url": "https://example.com/table.png",
  "target_format": "xlsx"
})
print(result.download_url)

Supported Scenarios (OCR)

IDScenarioDescription
1id_cardChinese ID card
2bank_cardBank card number and details
3invoiceChinese invoice (fapiao)
4receiptGeneral receipt
5handwrittenHandwritten text
6printedPrinted book or document
7business_cardBusiness card
8passportPassport data page
9license_plateLicense plate (Chinese)
10vehicle_vinVehicle VIN number
11tableTable with rows and columns
12formStructured form
13menuMenu or price list
14labelProduct label or barcode
15codeQR code or barcode
16mixedMixed text and image
17generalGeneral purpose OCR

Supported Enhancement Modes

IDModeDescription
1autoAutomatic enhancement
2perspective_correctionCorrect perspective distortion
3shadow_removalRemove shadows
4contrast_optimizationOptimize contrast
5binarizationConvert to black-and-white
6color_enhancementEnhance colors
7noise_reductionReduce noise
8sharpeningSharpen the image
9deblurringReduce blur
10light_correctionCorrect uneven lighting
11straightenStraighten skewed images
12cropAuto crop to document borders
13compressCompress image while preserving quality

Limitations

  • Maximum file size for images: 20 MB
  • Supported image formats: PNG, JPG, JPEG, BMP, WEBP
  • Images must be in base64 encoding or accessible via public URL
  • OCR accuracy depends on image quality and text clarity
  • Conversion to Office formats may lose complex formatting (e.g., nested tables, merged cells)

API Key

To obtain your free API key, visit the Quark Scanner Developer Portal and create an account.

License

This skill is provided under the MIT License. See LICENSE for details.

相关技能