Back to skills
SKILL.md
Image Ocr Reader
ASecurity从图片中提取文字内容的技能,支持中文和英文识别。
- 7 stars
- 0 votes
- 0 copies
- 2 views
- Added June 7, 2026
Works with
Security analysis
96/100- Installs packages at runtime which could introduce malicious dependencies
Pro scans all 3 files and shows the line behind each finding
npx -y skills add modbender/skill-library-mcp --skill image-ocr-reader --agent claude-codeAre you the author of Image Ocr Reader?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/modbender-image-ocr-reader)---
name: Image OCR Reader
description: 从图片中提取文字内容的技能,支持中文和英文识别。
---
# Image OCR Reader
从图片中提取文字内容的技能,支持中文和英文识别。
## 功能
- 从图片文件中提取文字 (OCR)
- 支持中文、英文混合识别
- 使用 Tesseract OCR 引擎
- 兼容 jpg、png、jpeg 等常见图片格式
## 依赖
- Python 3
- tesseract-ocr
- pytesseract
- Pillow
## 安装
### 1. 安装系统依赖
```bash
# Ubuntu/Debian
sudo apt-get install tesseract-ocr
# macOS
brew install tesseract
# CentOS/RHEL
sudo yum install tesseract
```
### 2. 安装 Python 依赖
```bash
pip install pytesseract Pillow
```
## 使用方法
### 命令行
```bash
python3 image_ocr_reader.py --file /path/to/image.jpg
```
### Python API
```python
from image_ocr_reader import extract_text
text = extract_text("/path/to/image.jpg")
print(text)
```
## 输出示例
输入一张包含文字的图片,输出提取的文字内容。
---
## 积分
- 版本: 1.0.0
- 作者: OpenClaw
- 许可证: MIT
Files in this skill
- SKILL.md
- __init__.py
- image_ocr_reader.py
Attribution
Comments
Loading comments…