Image
生成和处理图像内容的基础功能模块
Core functionality module for generating and processing image content
clawhub install image对屏幕截图进行光学字符识别,提取图片中的文字。
Perform Optical Character Recognition (OCR) on screenshots to extract text from images.
# 安装 Skill(会下载 SKILL.md 到 .claude/skills/) clawhub install screenshot-ocr # 之后直接对 Claude 说"用 Screenshot Ocr 帮我…"即可
# 同样的安装命令,兼容所有支持 SKILL.md 的 AI 编程工具 clawhub install screenshot-ocr
此 Skill 兼容 OpenClaw 标准。 安装后自动生成 SKILL.md 文件,任何支持 OpenClaw 协议的 AI Agent(Claude Code、Cursor、Windsurf 等)均可直接调用。
需要注册clawhub账户,本地或云端均可运行
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
clawhub run screenshot-ocr --image ./screenshot.png --language auto --format json图像托管:将图像上传到 img402.dev 获取公开链接,用于消息分享、文档嵌入或社交媒体发布。
Upload images to img402.dev and get a public URL. Free tier: 1MB max, 7-day retention, no auth. Use when the agent needs a hosted image URL — for sharing in messages, embedding in documents, posting to social platforms, or any context that requires a public link to an image file.
clawhub install image-hosting