Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add malue-ai/dazee-small --skill multi-lang-ocrgit clone --depth 1 https://github.com/malue-ai/dazee-smallWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/malue-ai/dazee-small/multi-lang-ocr)<a href="https://agentmods.dev/skills/malue-ai/dazee-small/multi-lang-ocr"><img src="https://agentmods.dev/badge/skills/malue-ai/dazee-small/multi-lang-ocr/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/malue-ai/dazee-small/multi-lang-ocr"><img src="https://agentmods.dev/badge/skills/malue-ai/dazee-small/multi-lang-ocr.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00040 | $0.02004 |
| Opus 5.5 | $0.00016 | $0.00802 |
| Sonnet 5.5 | $0.00008 | $0.00401 |
| Haiku 4.5 | $0.00004 | $0.00200 |
Grade A, and why
multi-lang-ocr scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Runs shell commandslowCapability
Expected in a hook, worth knowing in a rule or an instructions file.
result = subprocess.run( How it starts
The opening of the file, as written. The whole thing — 245 lines — stays where its author put it; the contents beside it link to each section on GitHub.
多语言 OCR — 图片文字提取
从图片、截图、扫描件中提取文字。支持中文、英文、中英混排、日文、韩文。100% 本地运行,保护隐私。
使用场景
- 用户说「帮我提取这张图片里的文字」「截图转文字」
- 用户说「识别这份扫描文档的内容」「名片上的信息提取出来」
- 用户说「把这张照片里的表格提取成文本」
- 处理 PDF 中无法提取文字的扫描页
引擎选择(分层策略)
macOS 优先路径(零安装)
macOS 内置 Vision Framework,中英混排识别质量优秀,无需安装任何依赖。
import subprocess, json
def ocr_macos_vision(image_path: str) -> str:
"""Use macOS Vision Framework for OCR (zero install, best quality on Mac)."""
swift_code = f'''
import Foundation
import Vision
let url = URL(fileURLWithPath: "{image_path}")
guard let image = CGImage.from(url: url) else {{ exit(1) }}
let request = VNRecognizeTextRequest()
request.recognitionLevel = .accurate
request.recognitionLanguages = ["zh-Hans", "zh-Hant", "en-US", "ja", "ko"]
request.usesLanguageCorrection = true
let handler = VNImageRequestHandler(cgImage: image)
try handler.perform([request])
let results = request.results ?? []
for obs in results {{
if let candidate = obs.topCandidates(1).first {{
print(candidate.string)
}}
}}
'''
# Save and execute Swift script
import tempfile, os
script_path = tempfile.mktemp(suffix='.swift')
with open(script_path, 'w') as f:
f.write(swift_code)
try:
result = subprocess.run(
['swift', script_path],
capture_output=True, text=True, timeout=30
)
return result.stdout.strip()
finally:
os.unlink(script_path)
使用条件:macOS 13+,无需安装任何依赖。通过 nodes 执行即可。
跨平台路径(pip 安装,~50MB)
使用 rapidocr-onnxruntime,基于 PaddleOCR v4 模型的 ONNX 推理版本。
# 首次安装(约 50MB,30 秒内完成)
pip install rapidocr-onnxruntime
from rapidocr_onnxruntime import RapidOCR
engine = RapidOCR()
# 基本识别(自动检测中英文,无需指定语言)
result, elapse = engine("/path/to/image.png")
# result 是列表:[[坐标, 文字, 置信度], ...]
if result:
for line in result:
box, text, confidence = line
print(f"{text} (置信度: {confidence:.2f})")
执行方式
通过 nodes 写 Python 脚本执行 OCR。优先尝试 macOS Vision,不可用时降级到 rapidocr。
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 3mo ago First seen · 245 lines · 40 tokens per session scan A b08f89c1c09e
multi-lang-ocr is a skill published in the GitHub repository malue-ai/dazee-small (37 stars, last pushed 8mo ago), licensed MIT. It adds 40 tokens to every session and 2,004 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 1 finding (runs shell commands). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
multi-lang-ocr compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| multi-lang-ocrmalue-ai/dazee-small | Skill | 37 | 8mo ago | MIT | A | 40 | Claude Code, Codex |
| instrument-data-to-allotropeanthropics/knowledge-work-plugins | Skill | 38k | yesterday | Apache-2.0 | A | 123 | Claude Code |
| orbit-notionnexu-io/open-design | Skill | 111k | yesterday | Apache-2.0 | A | 117 | Claude Code, Codex |
| report-to-pdfasgeirtj/system_prompts_leaks | Skill | 74k | today | CC0-1.0 | A | 17 | Claude Code, Codex |
| legal-holdanthropics/claude-for-legal | Skill | 10k | 4d ago | Apache-2.0 | A | 68 | Claude Code |
| artifact-template-minimal-letterheadasgeirtj/system_prompts_leaks | Skill | 74k | today | CC0-1.0 | A | 54 | Claude Code, Codex |
| feishuHmbown/CodeWhale | Skill | 41k | 5d ago | MIT | A | 33 | Claude Code, Codex |