# Screenshot Ocr

> 截图 OCR 识别工具。截图→自动识别文字→复制/保存，适合提取图片内容、表格数据、验证码。

- Skill: `jinhong270/screenshot-ocr` (Agent Skill, multi-file: 3 files)
- Install (CLI): `npx get-skill add jinhong270/screenshot-ocr`
- Raw SKILL.md: https://api.skillmd.com/api/skills/jinhong270/screenshot-ocr/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: Jinhong270 (https://skillmd.com/u/jinhong270)
- Updated: 2026-11-23
- Page: https://skillmd.com/skills/jinhong270/screenshot-ocr

---


# Screenshot OCR 📷

截图自动识别文字，支持中文、英文、数字。

## 功能

- 📷 截图识别（截屏或粘贴图片）
- 🔤 高精度 OCR 识别
- 📋 一键复制到剪贴板
- 💾 保存为 TXT 文件
- 📊 支持表格识别

## 使用方法

### 识别剪贴板图片

```bash
python3 scripts/ocr.py clipboard
```

### 识别图片文件

```bash
python3 scripts/ocr.py file screenshot.png
```

### 识别并保存

```bash
python3 scripts/ocr.py file screenshot.png --save result.txt
```

### 识别并复制

```bash
python3 scripts/ocr.py file screenshot.png --copy
```

## 依赖安装

```bash
# 安装 Tesseract（Linux）
sudo apt install tesseract-ocr tesseract-ocr-chi-sim

# macOS
brew install tesseract

# Windows
# 下载安装 https://github.com/UB-Mannheim/tesseract/wiki
```

## 示例

```bash
# 识别截图
python3 scripts/ocr.py clipboard

# 识别图片并复制
python3 scripts/ocr.py file ~/Desktop/1.png --copy
```

## 环境要求

- Python 3
- tesseract-ocr
- pytesseract
- pillow

```bash
pip install pytesseract pillow
```

