OCR skill for extracting text from images and PDFs. Use when you need to read text from screenshots, photos, scanned documents, or any image file. Supports Chinese, English, and 100+ languages.
Install
npx skills add https://github.com/mr-shaper/opencode-skill-hybrid-ocr --skill ocrSKILL.md
OCR Skill
Usage
To extract text from an image or PDF, run:
python3 "/Users/mrshaper/Library/Application Support/com.differentai.openwork/workspaces/starter/.opencode/skills/paddle-ocr/scripts/ocr.py" "/path/to/image.png"
Options
| Option | Description |
|---|---|
--prompt "text" |
Custom prompt (e.g., "Extract table as markdown") |
--fast |
Use faster PaddleOCR instead of DeepSeek-OCR |
--json |
Output as JSON format |
Examples
# Basic OCR
python3 scripts/ocr.py image.png
# Extract table as markdown
python3 scripts/ocr.py table.png --prompt "Extract this table as markdown"
# Fast mode
python3 scripts/ocr.py image.png --fast
# PDF OCR
python3 scripts/ocr.py document.pdf
Supported Formats
Images: PNG, JPG, JPEG, BMP, GIF, WEBP, TIFF Documents: PDF
Related skills
find-skillsvercel-labs3.6MHelps users discover and install agent skills when they ask questions like "how do I do X", "find a skill for X", "is there a skill that can...", or express interest in extending capabilities. This skill should be used when the user is looking for functionality that might exist as an installable skill.grill-memattpocock1.2MA relentless interview to sharpen a plan or design.grill-with-docsmattpocock1.1MA relentless interview to sharpen a plan or design, which also creates docs (ADR's and glossary) as we go.improve-codebase-architecturemattpocock1MScan a codebase for deepening opportunities, present them as a visual HTML report, then grill through whichever one you pick.