civen-cn

Windows Skills

AI 智能体v1.0.1
作者:civen-cn更新于 2026-05-11共 2 个版本 · 最新版本发布于 2026-03-08windows-skills@clawhub_civen-cn/windows-skills
任务自动化#OCR

据 AlphaMoat 统计,截至 2026-09,Windows Skills 累计下载 1,935 次、获 3 个星标,在全部 5,078 个 AI 技能中排名第 4,472 位,在「AI 智能体」分类(969 个)中排名第 887 位。

累计安装
313
累计下载
1,935
星标
3
全站排名
#4,472
全站前 89% · 「AI 智能体」前 92%
平台累计安装累计下载星标评论
ClawHub ↗421,5552-
SkillHub ↗3131,9353—

各平台的计数口径不同,统计时间不一致。

这个技能是做什么的

Python 辅助程序截取屏幕或窗口,通过 Tesseract 识别文字并匹配界面图像,需所列图像/桌面库与 OCR 工具。结果依赖图像质量与匹配一致性。仅截必要范围,保护保存图像,采取动作前审阅定位坐标。

资料发布于 2026-10-27

可以用来做什么

  • 准备截图和OCR流程

什么时候用

  • Windows任务需要限定视觉提取时

示例提示词

以下是根据技能文档生成的示例,不代表实际运行结果。

只规划截取这个获准窗口,说明OCR限制,交互前核验匹配坐标。

月度数据趋势

累计下载1,935
6941,3612,0272026-03 · 累计下载 7862026-05 · 累计下载 1,2352026-06 · 累计下载 1,3382026-07 · 累计下载 1,5362026-08 · 累计下载 1,6962026-09 · 累计下载 1,93526-0326-09
星标3
1232026-03 · 星标 12026-05 · 星标 22026-06 · 星标 22026-07 · 星标 32026-08 · 星标 32026-09 · 星标 326-0326-09

2026-09 起统计方法调整:同名技能按作者分别统计,并覆盖全部技能。图中虚线为调整前的月份,与之后的数据不直接比较,也不计算跨越调整的增长。

月份累计下载环比星标
2026-091,935—3
2026-081,696+10.4%3
2026-071,536+14.8%3
2026-061,338+8.3%2
2026-051,235—2
2026-03786—1

SKILL.md 原文

以下是作者发布的原始文件,按纯文本显示,本站未做修改或审核;其中的链接不可点击,命令请核实后再运行。抓取于 2026-10-23。

3.3 KB · ClawHub v1.0.1
---
name: windows-skills
description: Windows desktop automation skills - screenshot capture, OCR text extraction, and image-based UI element location. Use when: (1) capturing screen content (2) extracting text from images (3) locating UI elements for automation
---

# Windows Desktop Automation

## Quick Start

### Dependencies
展开全部(共 141 行)
```bash
pip install mss pytesseract pillow pyautogui opencv-python numpy
```
Note: OCR requires [Tesseract OCR](https://github.com/UB-Mannheim/tesseract/wiki) installed

### Core Features

#### 1. Screenshot
```python
from scripts.screenshot import capture_screen, capture_region, capture_window

# Full screen
capture_screen("output.png")

# Region (x, y, width, height)
capture_region(0, 0, 800, 600, "region.png")

# Window by title
capture_window("Notepad", "notepad.png")
```

#### 2. OCR (Text Recognition)
```python
from scripts.ocr import extract_text

# Extract text from image
text = extract_text("screenshot.png")
print(text)

# Specify language (chi_sim=Chinese, eng=English)
text = extract_text("screenshot.png", lang="chi_sim+eng")
```

#### 3. Image Location
```python
from scripts.image_locate import locate_on_screen, locate_all

# Find image position (returns center coordinates)
pos = locate_on_screen("button.png")
if pos:
    x, y, confidence = pos
    pyautogui.click(x, y)  # Click the found element

# Find all matches
positions = locate_all("icon.png")
```

## Scripts

| Script | Description |
|--------|-------------|
| `screenshot.py` | Screenshot capture |
| `ocr.py` | Text recognition |
| `image_locate.py` | Image-based element location |
| `helpers.py` | Common utilities |

## Notes

- Image location is sensitive to image similarity; keep screenshots consistent
- OCR quality depends on image quality and text clarity
- Tesseract path needs to be in system PATH or specified in code

---

# Windows 桌面自动化

## 快速开始

### 依赖安装
```bash
pip install mss pytesseract pillow pyautogui opencv-python numpy
```
注意:OCR 需要安装 [Tesseract OCR](https://github.com/UB-Mannheim/tesseract/wiki)

### 核心功能

#### 1. 截图
```python
from scripts.screenshot import capture_screen, capture_region, capture_window

# 全屏截图
capture_screen("output.png")

# 区域截图 (x, y, width, height)
capture_region(0, 0, 800, 600, "region.png")

# 窗口截图
capture_window("Notepad", "notepad.png")
```

#### 2. 文字识别 (OCR)
```python
from scripts.ocr import extract_text

# 从图片提取文字
text = extract_text("screenshot.png")
print(text)

# 指定语言 (chi_sim = 简体中文, eng = 英文)
text = extract_text("screenshot.png", lang="chi_sim+eng")
```

#### 3. 图像定位
```python
from scripts.image_locate import locate_on_screen, locate_all

# 查找图片位置 (返回中心坐标)
pos = locate_on_screen("button.png")
if pos:
    x, y, conf = pos
    pyautogui.click(x, y)  # 点击找到的元素

# 查找所有匹配位置
positions = locate_all("icon.png")
```

## 脚本说明

| 脚本 | 功能 |
|------|------|
| `screenshot.py` | 截图功能 |
| `ocr.py` | 文字识别 |
| `image_locate.py` | 图像定位 |
| `helpers.py` | 公共工具 |

## 注意事项

- 图像定位对图片相似度敏感,建议截图时保持一致
- OCR 效果取决于图片质量和文字清晰度
- Tesseract 路径需要添加到系统 PATH 或在代码中指定

「AI 智能体」分类下的热门技能

数据月份:2026-09 · 下载/星标/安装数聚合自公开技能注册库(ClawHub、SkillHub),按月更新。口径说明见数据方法。