multi-lang-ocr

multi-lang-ocr is a skill for Claude Code, Codex from malue-ai/dazee-small. It costs 40 tokens per session (2,004 once invoked), scanned A, original, MIT.

A local tool that reads text from images, screenshots, and scanned documents in Chinese, English, Japanese, Korean, or mixed languages.

In plain words
What is it for?
Use it to transcribe screenshots, photos, business cards, tables, and scanned PDF pages.
Why use it?
It turns pictures and scans into usable text without sending the files away, which helps protect private information.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to transcribe screenshots, photos, business cards, tables, and scanned PDF pages.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/malue-ai/dazee-small/multi-lang-ocr
Install

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.

Any agent
npx skills add malue-ai/dazee-small --skill multi-lang-ocr
Clone the repo
git clone --depth 1 https://github.com/malue-ai/dazee-small

Made for: Claude Code, Codex.

Wrote 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.

agentmods badge for multi-lang-ocr

README.md
[![agentmods](https://agentmods.dev/badge/skills/malue-ai/dazee-small/multi-lang-ocr/github.svg)](https://agentmods.dev/skills/malue-ai/dazee-small/multi-lang-ocr)
Your own site
<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.

agentmods 80×15 button for multi-lang-ocr

Your own site · 80×15
<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>
Per session 40 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,004 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce 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

Measured 3mo ago against content hash b08f89c1c09e, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

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(
instances/xiaodazi/skills/multi-lang-ocr/SKILL.md · 245 lines

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。

Read the full file on GitHub · 245 lines

Changes

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.

  1. 3mo ago First seen · 245 lines · 40 tokens per session scan A b08f89c1c09e

Subscribe to this mod's changes

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.

Related

multi-lang-ocr compared with skills from other repositories

multi-lang-ocr next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
multi-lang-ocrmalue-ai/dazee-smallSkill378mo agoMITA40Claude Code, Codex
instrument-data-to-allotropeanthropics/knowledge-work-pluginsSkill38kyesterdayApache-2.0A123Claude Code
orbit-notionnexu-io/open-designSkill111kyesterdayApache-2.0A117Claude Code, Codex
report-to-pdfasgeirtj/system_prompts_leaksSkill74ktodayCC0-1.0A17Claude Code, Codex
legal-holdanthropics/claude-for-legalSkill10k4d agoApache-2.0A68Claude Code
artifact-template-minimal-letterheadasgeirtj/system_prompts_leaksSkill74ktodayCC0-1.0A54Claude Code, Codex
feishuHmbown/CodeWhaleSkill41k5d agoMITA33Claude Code, Codex