360 Secure SkillHub
360 安全技能中心

Moark Ocr

核心功能:调用GITEE AI API提取图片文字,并根据用户需求生成识别文本的摘要。典型场景:提取扫描文档、截图等图片内的文字内容。需先安装openai依赖,通过指定Python脚本执行,输入需提供图片路径、需求prompt及GITEEAI_API_KEY(无则提醒补充);输出以`📷[OCR Result]`格式展示识别结果,并附符合需求的摘要。

fchange
fchange
热度 59.35
最近更新 2026-05-11 17:35:51
分类:效率依赖:代码执行 / 第三方 API应用场景:文件转换 / 摘要总结

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add moark-ocr
Metadata
name
moark-ocr
description
Perform Optical Character Recognition (OCR) to extract and recognize text from images.
metadata
{"openclaw":{"emoji":"📷","requires":{"env":["GITEEAI_API_KEY"]},"primaryEnv":"GITEEAI_API_KEY"}}

OCR (Optical Character Recognition)

This skill allows users to extract and recognize text from images using an external GITEE AI API.

Usage

Ensure you have installed the required dependencies (pip install openai). Use the bundled script to perform OCR on an image.

python {baseDir}/scripts/perform_ocr.py --image /path/to/image.jpg --prompt "Users requirements" --api-key YOUR_API_KEY

Options

No additional parameters are required for this skill.

Workflow

  1. Execute the perform_ocr.py script with the parameters from the user.
  2. Parse the script output and find the line starting with OCR_RESULT:.
  3. Extract the OCR result from that line (format: OCR_RESULT: ...).
  4. Display the OCR result to the user using markdown syntax: 📷[OCR Result].

Notes

  • If GITEEAI_API_KEY is none, you should remind user to provide --api-key argument
  • You should not only return the OCR result but also provide a brief summary of the recognized text based on the user's prompt.
  • When you add prompt, you should honestly repeat the requirements from user without any additional imaginations.
  • The script prints OCR_RESULT: in the output - extract this result and display it using markdown image syntax:📷[OCR Result].
  • Always look for the line starting with OCR_RESULT: in the script output.