Skip to content
Back to skills

Ocr Python

ASecurity

"Optical Character Recognition (OCR) tool, supports Chinese and

  • 21 stars
  • 0 votes
  • 0 copies
  • 8 views
  • Added September 7, 2026
businesspythonbash

Security analysis

A96/100
  • mediumInstalls packages at runtime which could introduce malicious dependencies

Pro scans all 3 files and shows the line behind each finding

Scanned September 7, 2026

npx -y skills add modbender/skill-library-mcp --skill ocr-python --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Ocr Python?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Ocr Python
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/modbender-ocr-python/badge)](https://www.skillsdirectory.com/skills/modbender-ocr-python)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: ocr
description: "Optical Character Recognition (OCR) tool, supports Chinese and
  English text extraction from PDFs and images. Use cases: (1) extract text from
  scanned PDFs, (2) recognize text from images, (3) extract text content from
  invoices, contracts, and other documents"
---


# OCR Text Recognition

This skill uses PaddleOCR for text recognition, supporting both Chinese and English.

## Quick Start

### Basic Usage

Perform OCR recognition directly on image or PDF files:

```python
from paddleocr import PaddleOCR

ocr = PaddleOCR(lang='ch')
result = ocr.predict("file_path.jpg")
```

## Dependency Installation

Install dependencies before first use:

```bash
pip3 install paddlepaddle paddleocr
```

## Output Format

Recognition results return JSON containing:
- `rec_texts`: List of recognized text
- `rec_scores`: Confidence score for each text

## Typical Use Cases

1. **PDF Scans**: Use PyMuPDF to extract images first, then OCR
2. **Image Text Recognition**: Perform OCR directly on images
3. **Multi-page PDFs**: Process page by page

## Scripts

Common scripts are located in the `scripts/` directory.

Files in this skill

  • SKILL.md1.2 KB
  • SKILL.zh-CN.md1 KB
  • scripts/ocr.py3.1 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in business →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.