image-ocr
Installation
SKILL.md
Image OCR
Batch-processes a directory of JPG/JPEG images and produces a combined Markdown file containing the OCR text from each image.
When to use
Use this skill when the user wants to extract text from one or more JPG/JPEG images -- for example scanned documents, photos of whiteboards, or screenshots.
Backends
- vision (default on macOS/Apple Silicon) -- Uses Apple's Vision framework via PyObjC. Fast, on-device, GPU-accelerated. Requires
pyobjc-coreandpyobjc-framework-Vision. - tesseract -- Uses the
tesseractCLI binary. Cross-platform. Optional preprocessing (grayscale, autocontrast, upscale) via Pillow. - mlx_ocr -- Uses MLX-based OCR on Apple Silicon. Runs in a subprocess to isolate potential Metal crashes. Requires Python 3.10+ and
mlx-ocr. - auto -- Tries vision first, falls back to tesseract.