About ocr
An OCR skill for extracting text from images and PDFs. It supports a custom prompt, JSON output, and a faster PaddleOCR mode.
Key features
- 01Extract text from images and PDFs
- 02Provide custom extraction prompts
- 03Output results as JSON
- 04Use faster PaddleOCR mode
Use cases
- 01Extract text from a scanned PDF
- 02Turn an image table into Markdown
- 03Request structured OCR output
- 04Choose faster processing for an image
Install
Copy the command and run it in a terminal.
$
npx skills add https:/ / github.com/ mr-shaper/ opencode-skill-hybrid-ocr --skill ocrAfter installing, type/ocrin Claude Code to confirm it loaded.
Bundled files
References and scripts installed along with SKILL.md.
.env.example.gitignoreREADME_CN.mdDEPLOYMENT.mdREADME.md部署说明.mdscripts/setup_check.pyocr.pyrequirements.txtDetails
From the project READMEOCR 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
Comments
Markdown supported