mcpField
O
ocr

ocr

github.com/mr-shaperDocuments2501 installsUpdated 38w ago
Repository

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

  1. 01Extract text from images and PDFs
  2. 02Provide custom extraction prompts
  3. 03Output results as JSON
  4. 04Use faster PaddleOCR mode

Use cases

  1. 01Extract text from a scanned PDF
  2. 02Turn an image table into Markdown
  3. 03Request structured OCR output
  4. 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 ocr

After installing, type/ocrin Claude Code to confirm it loaded.

Bundled files

References and scripts installed along with SKILL.md.

.env.example
.gitignore
README_CN.md
DEPLOYMENT.md
README.md
部署说明.md
scripts/
setup_check.py
ocr.py
requirements.txt

Details

From the project README

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

OptionDescription
--prompt "text"Custom prompt (e.g., "Extract table as markdown")
--fastUse faster PaddleOCR instead of DeepSeek-OCR
--jsonOutput 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