/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
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install jpocr - After installation, invoke the skill by name or use
/jpocr - Provide required inputs per the skill's parameter spec and get structured output
What is 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... It is an AI Agent Skill for Claude Code / OpenClaw, with 939 downloads so far.
How do I install jpocr?
Run "/install jpocr" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is jpocr free?
Yes, jpocr is completely free (open-source). You can download, install and use it at no cost.
Which platforms does jpocr support?
jpocr is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created jpocr?
It is built and maintained by Wayne (@realwaynesun); the current version is v1.0.0.