/install jpocr
jpocr — Japanese OCR Skill
Local Japanese OCR powered by NDLOCR-Lite from Japan's National Diet Library. Runs on CPU (Apple Silicon / x86), no GPU or API key required.
Capabilities
| Target | Quality |
|---|---|
| Printed Japanese (活字) | Excellent |
| Vertical text (縦書き) | Excellent |
| English text | Good |
| Handwritten Japanese (手書き) | Experimental |
How to call
Run scripts/ocr-cli.sh from the skill root directory:
\x3CSKILL_ROOT>/scripts/ocr-cli.sh \x3Cimage_path> # → plain text to stdout
\x3CSKILL_ROOT>/scripts/ocr-cli.sh \x3Cimage_path> --json # → JSON with bounding boxes
\x3CSKILL_ROOT>/scripts/ocr-cli.sh \x3Cimage_path> --viz # → also saves visualization
\x3CSKILL_ROOT>/scripts/ocr-cli.sh \x3Cdir_path> # → batch all images in dir
Output formats
text (default): one line per detected text region.
json:
{
"contents": [[
{
"boundingBox": [[x1,y1],[x1,y2],[x2,y1],[x2,y2]],
"text": "recognized text",
"confidence": 0.95,
"isVertical": "true"
}
]],
"imginfo": { "img_width": 1920, "img_height": 1080 }
}
viz: saves viz_\x3Cfilename> bounding-box overlay image to the output directory.
Performance
- ~2-3 seconds per image on Apple Silicon (CPU)
- Formats: JPG, PNG, TIFF, JP2, BMP
- Charset: ~7000 characters (JIS kanji + kana + ASCII + Greek)
Tech stack
- Layout detection: DEIMv2 (ONNX)
- Text recognition: PARSeq cascade (30/50/100 char models, ONNX)
- Reading order: xy-cut algorithm
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install jpocr - 安装完成后,直接呼叫该 Skill 的名称或使用
/jpocr触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
jpocr 是什么?
Japanese OCR via NDLOCR-Lite (National Diet Library). Trigger on 'OCR this image', '日文OCR', 'recognize Japanese text', or any request to extract text from Ja... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 939 次。
如何安装 jpocr?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install jpocr」即可一键安装,无需额外配置。
jpocr 是免费的吗?
是的,jpocr 完全免费(开源免费),可自由下载、安装和使用。
jpocr 支持哪些平台?
jpocr 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 jpocr?
由 Wayne(@realwaynesun)开发并维护,当前版本 v1.0.0。