OCR - Local (No API Key)
Extract text from images using Tesseract.js OCR (100% local, no API key required). Supports Chinese (simplified/traditional) and English.
shaw555
@shaw555
What This Skill Does
Extracts text from images using Tesseract.js OCR, running entirely locally with no API key required. Supports simplified Chinese, traditional Chinese, and English, with options for language combination and JSON output.
Replaces cloud-based OCR services that require API keys and internet access by running 100% locally with cached language data.
When to Use It
- Extract text from a screenshot of a Chinese interface
- Digitize text from a scanned English document
- Recognize mixed Chinese and English text in a single image
- Batch process multiple images for text extraction in a script
- Extract text from a high-contrast image for data entry
Install
$ openclaw skills install @shaw555/ocr-localOCR - Image Text Recognition (Local)
Extract text from images using Tesseract.js. 100% local run, no API key required. Supports Chinese and English.
Quick start
node {baseDir}/scripts/ocr.js /path/to/image.jpg
node {baseDir}/scripts/ocr.js /path/to/image.png --lang chi_sim
node {baseDir}/scripts/ocr.js /path/to/image.jpg --lang chi_tra+eng
Options
-
--lang <langs>: Language codes (default: chi_sim+eng)chi_sim- Simplified Chinesechi_tra- Traditional Chineseeng- English- Combine with
+:chi_sim+eng
-
--json: Output as JSON instead of plain text
Examples
# Recognize Chinese screenshot
node {baseDir}/scripts/ocr.js screenshot.png
# Recognize English document
node {baseDir}/scripts/ocr.js document.jpg --lang eng
# Mixed Chinese + English
node {baseDir}/scripts/ocr.js mixed.png --lang chi_sim+eng
Notes
- First run downloads language data (~20MB per language)
- Subsequent runs are cached locally
- Works best with clear, high-contrast images
- For handwritten text, accuracy may vary
Top skills in this category
Nano Pdf
@steipeteEdit PDFs with natural-language instructions using the nano-pdf CLI.
Word / DOCX
@ivangdavilaCreate, inspect, and edit Microsoft Word documents and DOCX files with reliable styles, numbering, tracked changes, tables, sections, and compatibility check...
Excel / XLSX
@ivangdavilaCreate, inspect, and edit Microsoft Excel workbooks and XLSX files with reliable formulas, dates, types, formatting, recalculation, and template preservation...
Markdown Converter
@steipeteConvert documents and files to Markdown using markitdown. Use when converting PDF, Word (.docx), PowerPoint (.pptx), Excel (.xlsx, .xls), HTML, CSV, JSON, XML, images (with EXIF/OCR), audio (with transcription), ZIP archives, YouTube URLs, or EPubs to Markdown format for LLM processing or text analysis.
Powerpoint / PPTX
@ivangdavilaCreate, inspect, and edit Microsoft PowerPoint presentations and PPTX decks with reliable layouts, templates, placeholders, notes, charts, and visual QA. Use...