选择你使用的 Agent
方法一:命令行安装(推荐)
推荐(无需提前安装 clawhub)
npx clawhub@latest --dir ~/.claude/skills install ocr-space或使用 clawhub CLI(需提前安装)
clawhub --dir ~/.claude/skills install ocr-space⚠️ 需要 Node.js 18+,没有 Node?请使用下方方法二直接下载 ZIP。 安装 Node.js →
方法二:手动下载安装(无需 Node)
下载 ZIP,解压后将文件夹放到以下路径,重启 Agent 即可:
安装路径
~/.claude/skills/ocr-space/💡解压后将文件夹放到上方路径,重启 Agent 即可生效
--- description: 调用 OCR.space 免费 API 识别图片中的文字 ---
使用免费 OCR API 识别图片中的文字,支持多语言。
---
| 限制项 | 额度 | |--------|------| | 每日请求数 | 500 次/天 | | 单文件大小 | 5 MB(自动压缩) | | API Key | 不需要(测试用 helloworld)|
> ⚠️ 注意:免费版适合测试和小规模使用,生产环境建议购买付费版
---
| 语言代码 | 语言名称 | |---------|---------| | chs | 中文简体 | | cht | 中文繁体 | | eng | 英语 | | jpn | 日语 | | kor | 韩语 | | fre | 法语 | | ger | 德语 | | spa | 西班牙语 | | por | 葡萄牙语 | | rus | 俄语 | | ara | 阿拉伯语 | | tha | 泰语 | | hin | 印地语 | | vie | 越南语 | | ita | 意大利语 | | dut | 荷兰语 | | pol | 波兰语 | | tur | 土耳其语 |
> 💡 Engine 2 和 Engine 3 支持语言自动检测
---
ocr-space/
├── SKILL.md # 本文件
├── ocr_space.py # 主脚本
└── README.md # 使用说明
---
# 识别中文(默认)
python3 ocr_space.py /path/to/image.jpg
# 识别英文
python3 ocr_space.py /path/to/image.jpg eng
# 识别日文
python3 ocr_space.py /path/to/image.png jpn
import sys
sys.path.insert(0, '/Users/shusiwei/.openclaw/workspace/skills/ocr-space')
from ocr_space import ocr_image
# 识别图片
result = ocr_image('/path/to/image.jpg', language='chs')
if result:
print(result)
---
在 OpenClaw 中可以通过 exec 调用:
python3 ~/.openclaw/workspace/skills/ocr-space/ocr_space.py <图片路径> [语言]
示例:
# 识别桌面图片
python3 ~/.openclaw/workspace/skills/ocr-space/ocr_space.py ~/Desktop/screenshot.png
---
更多参数和使用方法请参考:OCR.space OCR API
---
安装 OCR Space: Free OCR API 后,可以对 AI 说这些话来触发它
Help me get started with OCR Space: Free OCR API
Explains what OCR Space: Free OCR API does, walks through the setup, and runs a quick demo based on your current project
Use OCR Space: Free OCR API to call OCR
Invokes OCR Space: Free OCR API with the right parameters and returns the result directly in the conversation
What can I do with OCR Space: Free OCR API in my documents & notes workflow?
Lists the top use cases for OCR Space: Free OCR API, with example commands for each scenario
将技能文件夹放到 ~/.claude/skills/ocr-space/ 目录(个人级,所有项目可用),或 .claude/skills/ocr-space/(项目级)。重启 AI 客户端后,用 /ocr-space 主动调用,或让 AI 根据上下文自动发现并使用。
OCR Space: Free OCR API 支持 Claude、Cursor、OpenClaw,可与这些 AI 平台无缝集成,扩展其能力。
OCR Space: Free OCR API 可免费安装使用。请查阅仓库了解许可证信息。
调用 OCR.space 免费 API 识别图片中的文字
OCR Space: Free OCR API 属于「Documents & Notes」分类,该分类的技能帮助 AI 智能体在此领域执行专业任务。
Automate my documents & notes tasks using OCR Space: Free OCR API
Identifies repetitive steps in your workflow and sets up OCR Space: Free OCR API to handle them automatically