智能识图,一键提取与描述
简介
基于豆包多模态模型的图像识别工具,支持OCR文字提取与智能图像描述,一键解析截图、文档、照片等内容。
原始描述
Image recognition and understanding tool. Uses a multimodal model (e.g. doubao-seed-2.0-pro, kimi-k2.5) to analyze image content and supports OCR text extrac...
通过你的 Agent 添加
安装目录:image-reader/(目录名取自 SKILL.md 的 frontmatter name,不是 URL 里的 slug)。
点「快速安装」复制一段指令贴给你的 Agent:它会先下载到 /tmp、把文件清单和校验值给你看,你确认之后才解压安装。不会一步装完、也不改系统其它位置。
或者手动安装
包是「根级 SKILL.md + 作者附带的文件」,解压到上面的 <slug>/ 目录即可;
目录名不用换,也不要把包直接解压到 skills 根目录。
技能申请的权限由作者决定:装之前先看清单里有没有脚本、它会读写什么。
技能正文
name: image-reader description: > Image recognition and understanding tool. Uses a multimodal model (e.g. doubao-seed-2.0-pro, kimi-k2.5) to analyze image content and supports OCR text extraction and image description. Use this skill when a user sends a screenshot or image and needs the text extracted or the image content understood. compatibility: requires: - Python 3 - openai>=1.0.0 - pyyaml>=6.0
Image Reader Skill
Image recognition and understanding tool that leverages Doubao multimodal models to analyze image content.
Features
- Text Extraction (OCR): Extract text from images, suitable for documents, screenshots, posters, menus, etc.
- Image Description: Generate detailed descriptions of images, suitable for photos, illustrations, memes, UI screens, etc.
- General Analysis: Automatically choose the best analysis strategy based on the image type.
API Configuration
| Item | Value |
|---|---|
| API Endpoint | https://ark.cn-beijing.volces.com/api/coding/v3 |
| Model | doubao-seed-2.0-pro |
| Authentication | API Key (configured in config.yaml) |
Usage
Command Line
# General analysis
python image_reader.py /path/to/image.png
# Extract text (OCR)
python image_reader.py /path/to/image.png -p "Extract all text from the image"
# Describe the image
python image_reader.py /path/to/image.png -p "Describe this image in detail"
OpenClaw Skill Invocation
Once installed, you can invoke it using natural language:
Analyze this image
Extract the text from the image
Describe this screenshot
Output
- Text-heavy images: Returns all extracted text, preserving original formatting.
- Non-text images: Returns a detailed scene description, including objects, people, colors, style, etc.
- Mixed content: Provides both text extraction and a visual description.
Technical Details
- Uses an OpenAI-compatible API to call Doubao multimodal models
- Images are sent as base64-encoded data
- The system prompt adapts to the image type to select the most appropriate analysis strategy
正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。