Find your landing page message
Connect a product’s value to a specific audience and write a clear first-screen message.
5,369,514 AI resources indexedWorking toward the world’s largest AI resource index.
Optical Character Recognition (OCR) tool, supports Chinese and
---
name: ocr-67e187c18d1a
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.
---
name: ocr-67e187c18d1a
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.
Imported from the listed AgentSkill.sh category. Complete supplied package files and notices are retained. Includes source scripts; review them before use. Required external tools and credentials are not installed. No bundled code was executed during import. Individual agent task behavior has not been tested.