Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
aidotnet avatar

Image Ocr

  • 2 installs
  • 595 repo stars
  • Updated August 4, 2026
  • aidotnet/opencowork

image-ocr is a Claude Code skill that extracts text from images using Tesseract OCR through Python.

About

image-ocr is a Claude Code skill that extracts text from images using Tesseract OCR through Python. A developer uses it to read text from screenshots, photos of documents, scanned pages or any image containing text. It runs ocr_extract.py with pytesseract and Pillow, supports multiple languages and offers preprocessing and page-segmentation options for better accuracy.

  • Extracts text from images using Tesseract OCR via Python
  • Supports multiple languages including English, Chinese and Japanese and image preprocessing
  • Handles PNG, JPEG, TIFF, BMP and WebP with page-segmentation-mode control

Image Ocr by the numbers

  • 2 all-time installs (skills.sh)
  • Ranked #548 of 688 Office & Documents skills by installs in the Skillselion catalog
  • Data as of Aug 5, 2026 (Skillselion catalog sync)
At a glance

image-ocr capabilities & compatibility

Free; needs Python, pytesseract, Pillow and the Tesseract engine.

Capabilities
ocr · text extraction · image processing
Use cases
transcription · pdf parsing
Platforms
macOS · Windows · Linux
Pricing
Free
From the docs

What image-ocr says it does

Extract text from images using Tesseract OCR via Python.
SKILL.md
Supports PNG, JPEG, TIFF, BMP, and WebP formats.
SKILL.md
npx skills add https://github.com/aidotnet/opencowork --skill image-ocr

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs2
repo stars595
Last updatedAugust 4, 2026
Repositoryaidotnet/opencowork

What it does

Extract text from screenshots, scanned documents and photos using Tesseract OCR with language and preprocessing options.

Who is it for?

Reading text out of screenshots, scanned pages and photos across multiple languages.

Skip if: Structured document editing or generating new documents.

When should I use this skill?

A user wants to read or extract text from an image, screenshot or scanned document.

What you get

Extracted text from images, printed to terminal or saved to a file.

  • Extracted text output
  • Saved text files from images

By the numbers

  • 5 supported image formats (PNG, JPEG, TIFF, BMP, WebP)
  • 4 preprocessing modes (none, grayscale, threshold, blur)

Files

SKILL.mdMarkdownGitHub ↗

Image OCR

Extract text from images using Tesseract OCR via Python.

When to use this skill

  • User asks to read or extract text from an image
  • User has a screenshot with text they want to process
  • User has scanned documents that need text extraction
  • User wants to digitize text from photos

Scripts overview

ScriptPurposeDependencies
ocr_extract.pyExtract text from images with multiple optionspytesseract, Pillow

Steps

1. Install dependencies (first time only)

Install the Python packages:

pip install pytesseract Pillow

Install Tesseract OCR engine:

  • Windows: Download installer from https://github.com/UB-Mannheim/tesseract/wiki
  • macOS: brew install tesseract
  • Linux (Ubuntu/Debian): sudo apt install tesseract-ocr
  • Linux (Fedora): sudo dnf install tesseract

For additional language support:

  • Windows: Select languages during installation
  • Linux: sudo apt install tesseract-ocr-chi-sim (Chinese Simplified), tesseract-ocr-jpn (Japanese), etc.
CRITICAL — Dependency Error Recovery: If the script fails with an ImportError or "tesseract not found" error, install the missing dependencies using the commands above, then re-run the EXACT SAME script command that failed.

2. Extract text from an image

python scripts/ocr_extract.py "IMAGE_PATH"

Options:

  • --lang LANG — OCR language (default: eng). Use chi_sim for Chinese, jpn for Japanese, eng+chi_sim for multiple.
  • --save OUTPUT_PATH — Save extracted text to a file
  • --preprocess MODE — Image preprocessing: none (default), grayscale, threshold, blur
  • --dpi DPI — Set image DPI for better accuracy (default: auto-detect)
  • --psm MODE — Tesseract page segmentation mode (0-13, default: 3 = auto)

Examples:

# Basic text extraction
python scripts/ocr_extract.py "screenshot.png"

# Chinese text extraction
python scripts/ocr_extract.py "document.jpg" --lang chi_sim

# Mixed English and Chinese
python scripts/ocr_extract.py "mixed.png" --lang eng+chi_sim

# Preprocess noisy image for better accuracy
python scripts/ocr_extract.py "noisy_scan.png" --preprocess threshold

# Save output to file
python scripts/ocr_extract.py "scan.tiff" --save output.txt

# Single line of text (e.g., license plate, serial number)
python scripts/ocr_extract.py "plate.jpg" --psm 7

Page Segmentation Modes (PSM)

ModeDescriptionUse Case
3Fully automatic (default)General documents
4Assume single columnSingle-column text
6Assume single blockUniform text block
7Single lineOne line of text
8Single wordOne word
11Sparse textText scattered on image
13Raw lineSingle line, no OSD

Edge cases

  • Low quality images: Use --preprocess threshold or --preprocess blur to improve results
  • Rotated text: Tesseract handles slight rotation; for heavily rotated images, rotate first
  • Very small text: Increase DPI with --dpi 300 or higher
  • Mixed languages: Combine with +, e.g., --lang eng+chi_sim+jpn
  • Empty results: Try different PSM modes or preprocessing options

Scripts

  • ocr_extract.py — Extract text from images using Tesseract OCR

Related skills

FAQ

What does image-ocr require to run?

Python 3 with pytesseract and Pillow, plus the Tesseract OCR engine installed on the system.

Which image formats are supported?

PNG, JPEG, TIFF, BMP and WebP formats are supported.

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.