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
累計下載
1935
星標
3
全站排名
#4,472
全站前 89% · 「AI 智慧體」前 92%
平台累計安裝累計下載星標評論
ClawHub ↗4215552-
SkillHub ↗31319353—

各平台的計數口徑不同,統計時間不一致。

這個技能是做什麼的

Python 輔助程式擷取螢幕或視窗,透過 Tesseract 識別文字並匹配介面圖像,需所列圖像/桌面庫與 OCR 工具。結果依賴圖像質量與匹配一致性。僅截必要範圍,保護儲存圖像,採取動作前審閱定位座標。

資料釋出於 2026-10-27

可以用來做什麼

  • 準備截圖和OCR流程

什麼時候用

  • Windows任務需要限定視覺提取時

示例提示詞

以下是根據技能文件生成的示例,不代表實際執行結果。

只規劃擷取這個獲准視窗,說明OCR限制,互動前核驗匹配座標。

月度資料趨勢

累計下載1935
694136120272026-03 · 累計下載 7862026-05 · 累計下載 12352026-06 · 累計下載 13382026-07 · 累計下載 15362026-08 · 累計下載 16962026-09 · 累計下載 193526-0326-09
星標3
1232026-03 · 星標 12026-05 · 星標 22026-06 · 星標 22026-07 · 星標 32026-08 · 星標 32026-09 · 星標 326-0326-09

2026-09 起統計方法調整:同名技能按作者分別統計,並覆蓋全部技能。圖中虛線為調整前的月份,與之後的資料不直接比較,也不計算跨越調整的增長。

月份累計下載環比星標
2026-091935—3
2026-081696+10.4%3
2026-071536+14.8%3
2026-061338+8.3%2
2026-051235—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),按月更新。口徑說明見資料方法。