Install
openclaw skills install screenshot-ocr截图 OCR 识别工具。截图→自动识别文字→复制/保存,适合提取图片内容、表格数据、验证码。
openclaw skills install screenshot-ocr截图自动识别文字,支持中文、英文、数字。
python3 scripts/ocr.py clipboard
python3 scripts/ocr.py file screenshot.png
python3 scripts/ocr.py file screenshot.png --save result.txt
python3 scripts/ocr.py file screenshot.png --copy
# 安装 Tesseract(Linux)
sudo apt install tesseract-ocr tesseract-ocr-chi-sim
# macOS
brew install tesseract
# Windows
# 下载安装 https://github.com/UB-Mannheim/tesseract/wiki
# 识别截图
python3 scripts/ocr.py clipboard
# 识别图片并复制
python3 scripts/ocr.py file ~/Desktop/1.png --copy
pip install pytesseract pillow