Token导航 LogoToken导航TokenDH.com
开发需要联网clawhub未标认证来源可访问clear审计通过

vision-tool视觉工具

Agent Skill

vision-tool 用于整理文档、README、Markdown 和说明材料,适合在 OpenClaw 中需要把零散信息整理成结构清晰的文档时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

3,575

周安装

152

GitHub Stars

公开资料未说明

下载量

1,252
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:vision-tool(视觉工具)
来源仓库:https://github.com/huruilizhen/vision-tool
安装命令:
openclaw skills install vision-tool
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install vision-tool

简介

使用 Ollama + qwen3.5:4b 和 think=False 进行图像识别,以实现可靠的内容提取。

SKILL.md

name
Vision Tool
slug
vision-tool
version
1.1.3
description
Image recognition using Ollama + qwen3.5:4b with think=False for reliable content extraction.
author
HuRuilizhen
repository
https://github.com/HuRuilizhen/vision-tool
license
MIT
metadata
openclaw
emoji
👁️
primaryEnv
requires
bins
["ollama", "python3"]
env
[]
channels
["*"] # All channels
category
vision
tags
["image", "vision", "recognition", "ollama"]

Vision Tool 👁️

Image recognition using Ollama + qwen3.5:4b. Uses /api/chat endpoint for direct content extraction.

Features

Direct content extraction - Uses /api/chat endpoint for clean output ✅ Simplified architecture - No complex thinking field processing needed ✅ English prompts - Optimized for English language analysis ✅ Multi-channel support - Works in WeChat, Telegram, Discord, etc. ✅ Error handling - Full error recovery and reporting

Installation

Prerequisites

  1. Ollama service: ollama serve (must be running)
  2. qwen3.5:4b model: ollama pull qwen3.5:4b
  3. Python 3.8+: Required for running the skill

Install the skill

clawhub install vision-tool

Development Setup (For Contributors)

If you want to contribute or modify the skill, see CONTRIBUTING.md for detailed development instructions.

Basic setup:

# Clone the repository
git clone https://github.com/HuRuilizhen/vision-tool
cd vision-tool

# Set up development environment
python3 -m venv .venv
source .venv/bin/activate
pip install -e .

# Run tests
python3 -m pytest tests/

Usage

Basic usage

# From any OpenClaw channel
exec: python3 /path/to/vision-tool/main.py /path/to/image.jpg

# With custom prompt
exec: python3 /path/to/vision-tool/main.py /path/to/image.jpg --prompt "Describe this image"

# Debug output
exec: python3 /path/to/vision-tool/main.py /path/to/image.jpg --debug

Channel-specific examples

WeChat Channel:

# When receiving an image
exec: python3 /path/to/vision-tool/main.py "$IMAGE_PATH"

Telegram Channel:

# Reply to photo messages
exec: python3 /path/to/vision-tool/main.py "/path/to/telegram_photo.jpg"

Discord Channel:

# Process attachments
exec: python3 /path/to/vision-tool/main.py "./discord_attachment.jpg"

Example Output

Analysis (30.7s):
------------------------------------------------------------
The user wants a description of the image provided.
**1. Overall Composition:**
- It's a top-down view of a meal served on a white tray.
- There are six distinct dishes/bowls arranged...
**2. Detailed Breakdown of Dishes:**
- **Top Left:** A small white rectangular dish...
- **Top Middle:** A small white rectangular dish...
------------------------------------------------------------

How It Works

  1. Image reading: Reads and Base64 encodes the image
  2. API call: Calls Ollama /api/chat endpoint with qwen3.5:4b
  3. Direct extraction: Gets analysis directly from content field
  4. Fallback handling: Simple cleanup if thinking field is used
  5. Output formatting: Generates clean analysis results

Performance

  • Average processing time: 25-35 seconds per image (hardware dependent)
  • Image size support: 100KB-500KB recommended
  • Token consumption: ~2000 tokens per image
  • API endpoint: Uses /api/chat for direct content access

Troubleshooting

Common Issues

  1. Ollama not running: Run ollama serve first
  2. Model not installed: Run ollama pull qwen3.5:4b
  3. Image path incorrect: Use absolute paths or correct relative paths
  4. Timeout: Model may take 30+ seconds for complex images

Performance Tips

  • Compress images to under 300KB for faster processing
  • Use clear, concise prompts
  • Ensure Ollama has sufficient system resources

API Reference

Python API

from vision_core import VisionAnalyzer

analyzer = VisionAnalyzer()
result = analyzer.analyze_image("image.jpg", "Describe this image")
print(result["analysis"])

Command Line

# Basic analysis
python3 main.py image.jpg

# Custom prompt
python3 main.py image.jpg --prompt "What objects are in this image?"

# Debug mode
python3 main.py image.jpg --debug

Development

File Structure

vision-tool/
├── SKILL.md          # This documentation
├── main.py           # Main skill script
├── scripts/
│   └── vision_core.py  # Core analysis engine
└── tests/
    └── test_basic.py   # Basic tests

Testing

# Test with example image
python3 main.py /path/to/test.jpg --prompt "Test analysis"

# Run unit tests
python3 -m pytest tests/

Changelog

v1.1.0 (2026-04-13)

  • Uses /api/chat endpoint for direct content extraction
  • Simplified architecture without complex thinking field processing
  • Default English prompt "Describe this image"
  • Removed regex dependencies for cleaner code

v1.0.0 (2026-04-12)

  • Initial release

Contributing

Issues and pull requests are welcome. Please ensure tests pass before submitting.

License

This skill is part of the OpenClaw ecosystem.


Ready to use in all OpenClaw channels! 🚀

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

80.64%
按下载量换算1,010

安全审计

VirusTotal

通过

ClawScan

通过

Static analysis

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills