Token导航 LogoToken导航TokenDH.com
研究检索需要联网github未标认证来源可访问clear审计异常

computer-vision-helper计算机视觉助手

Agent Skill

computer-vision-helper 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

16,624

周安装

485

GitHub Stars

公开资料未说明

下载量

4,322
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

3

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

请帮我安装这个 Agent Skill:computer-vision-helper(计算机视觉助手)
来源仓库:https://github.com/eddiebe147/claude-settings
仓库路径:skills/computer-vision-helper
安装命令:
npx skills add https://github.com/eddiebe147/claude-settings --skill 'Computer Vision Helper'
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/eddiebe147/claude-settings --skill 'Computer Vision Helper'

简介

computer-vision-helper 指导实现图像分析与视觉 AI 任务,从分类到分割全覆盖。

  • 适用于 Codex、Claude、Cursor、Gemini CLI 中选择合适视觉模型并完成工程落地。
  • 支持传统 CNN 与 Vision-Language 模型(如 CLIP、SAM)的对比选型建议。
  • 安装前请确认输入输出格式、训练数据来源及是否涉及人脸、车牌等敏感信息处理。
  • 适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

SKILL.md

Computer Vision Helper

The Computer Vision Helper skill guides you through implementing image analysis and visual AI tasks. From basic image classification to complex object detection and segmentation, this skill helps you leverage modern computer vision techniques effectively.

Computer vision has been transformed by deep learning and now by vision-language models. This skill covers both traditional approaches (CNNs, pre-trained models) and cutting-edge techniques (CLIP, GPT-4V, Segment Anything). It helps you choose the right approach based on your accuracy requirements, available data, and deployment constraints.

Whether you are building product recognition, document analysis, medical imaging, or any visual AI application, this skill ensures you understand the landscape and implement solutions that work.

Core Workflows

Workflow 1: Select Computer Vision Approach

  1. Define the task:

- Classification: What category is this image? - Detection: Where are objects in this image? - Segmentation: Pixel-level object boundaries - OCR: Extract text from images - Similarity: Find similar images - Generation: Create or modify images

  1. Assess available resources:

- Training data quantity and quality - Compute budget (training and inference) - Latency requirements - Accuracy needs

  1. Choose approach: Task No Training Data Small Dataset Large Dataset Classification CLIP, GPT-4V Transfer learning Fine-tune/train Detection GPT-4V, Grounding DINO Fine-tune YOLO Train custom Segmentation SAM Fine-tune SAM Train custom OCR Cloud APIs, Tesseract Fine-tune Train custom
  2. Plan implementation
  3. Document approach rationale

Workflow 2: Implement Image Classification

  1. Prepare data: # Data loading with augmentation transform = transforms.Compose([transforms.Resize(256), transforms.CenterCrop(224), transforms.RandomHorizontalFlip(), transforms.ColorJitter(brightness=0.2, contrast=0.2), transforms.ToTensor(), transforms.Normalize(mean=[0.485, 0.456, 0.406], std=[0.229, 0.224, 0.225])]) dataset = ImageFolder(root='data/', transform=transform) dataloader = DataLoader(dataset, batch_size=32, shuffle=True)
  2. Set up model: # Transfer learning from pretrained model model = models.resnet50(pretrained=True) # Freeze early layers for param in model.parameters(): param.requires_grad = False # Replace classifier head model.fc = nn.Linear(model.fc.in_features, num_classes)
  3. Train with validation
  4. Evaluate on test set
  5. Optimize for deployment

Workflow 3: Deploy Vision Model

  1. Optimize model:

- Quantization (INT8) - Pruning - ONNX export - TensorRT optimization

  1. Set up inference pipeline: class VisionPipeline: def __init__(self, model_path): self.model = load_optimized_model(model_path) self.preprocessor = ImagePreprocessor() def predict(self, image): # Preprocess tensor = self.preprocessor.process(image) # Inference with torch.no_grad(): output = self.model(tensor) # Postprocess return self.postprocess(output) def predict_batch(self, images): tensors = [self.preprocessor.process(img) for img in images] batch = torch.stack(tensors) with torch.no_grad(): outputs = self.model(batch) return [self.postprocess(out) for out in outputs]
  2. Deploy to target environment
  3. Monitor performance

Quick Reference

ActionCommand/Trigger
Choose approach"What CV approach for [task]"
Classify images"Build image classifier"
Detect objects"Object detection for [use case]"
Extract text"OCR from images"
Zero-shot vision"Classify images without training data"
Optimize model"Speed up vision model"

Best Practices

  • Start with Pre-trained: Don't train from scratch unless necessary

- ImageNet pre-trained models for general vision - Domain-specific models when available - CLIP/GPT-4V for zero-shot capabilities

  • Data Quality Over Quantity: Clean, balanced data matters

- Remove mislabeled and duplicate images - Balance classes or use weighted training - Include edge cases in test set

  • Augment Thoughtfully: Augmentation should reflect real variation

- Use augmentations that mirror production conditions - Don't augment in ways that destroy task-relevant features - Test that augmentation helps, don't assume

  • Validate Correctly: Image data leaks easily

- Split by unique images, not by augmented versions - Consider subject-level splits (same person in different photos) - Test on truly held-out data

  • Optimize for Target Hardware: Inference matters

- Know your deployment constraints (edge vs cloud) - Profile and optimize bottlenecks - Consider batch size for throughput

  • Handle Edge Cases: Real images are messy

- Different lighting conditions - Rotation, blur, occlusion - Unusual aspect ratios - Out-of-distribution inputs

Advanced Techniques

Vision-Language Models for Zero-Shot

Use CLIP for classification without training:

import clip

model, preprocess = clip.load("ViT-B/32")

def zero_shot_classify(image, labels):
    # Prepare image
    image_tensor = preprocess(image).unsqueeze(0)

    # Prepare text prompts
    text_prompts = [f"a photo of a {label}" for label in labels]
    text_tokens = clip.tokenize(text_prompts)

    # Get embeddings
    with torch.no_grad():
        image_features = model.encode_image(image_tensor)
        text_features = model.encode_text(text_tokens)

    # Compute similarities
    similarities = (image_features @ text_features.T).softmax(dim=-1)

    return {label: sim.item() for label, sim in zip(labels, similarities[0])}

GPT-4V for Visual Analysis

Use multimodal LLMs for complex vision tasks:

def analyze_image(image_path, question):
    import base64
    from openai import OpenAI

    # Encode image
    with open(image_path, "rb") as f:
        image_data = base64.b64encode(f.read()).decode()

    client = OpenAI()
    response = client.chat.completions.create(
        model="gpt-4-vision-preview",
        messages=[{
            "role": "user",
            "content": [
                {"type": "text", "text": question},
                {"type": "image_url", "image_url": {
                    "url": f"data:image/jpeg;base64,{image_data}"
                }}
            ]
        }],
        max_tokens=500
    )

    return response.choices[0].message.content

Object Detection with YOLO

Fast, accurate object detection:

from ultralytics import YOLO

# Load pretrained model
model = YOLO("yolov8n.pt")

# Fine-tune on custom dataset
model.train(
    data="custom_dataset.yaml",
    epochs=100,
    imgsz=640,
    batch=16
)

# Inference
results = model.predict(source="image.jpg", conf=0.5)

for result in results:
    boxes = result.boxes
    for box in boxes:
        xyxy = box.xyxy[0].tolist()  # Bounding box
        conf = box.conf[0].item()     # Confidence
        cls = box.cls[0].item()       # Class ID
        print(f"Detected {cls} at {xyxy} with confidence {conf}")

Segment Anything (SAM)

Universal segmentation:

from segment_anything import sam_model_registry, SamPredictor

# Load SAM
sam = sam_model_registry["vit_h"](checkpoint="sam_vit_h.pth")
predictor = SamPredictor(sam)

# Set image
predictor.set_image(image)

# Segment with point prompt
masks, scores, logits = predictor.predict(
    point_coords=np.array([[500, 375]]),  # Click point
    point_labels=np.array([1]),            # 1 = foreground
    multimask_output=True
)

# Segment with box prompt
masks, scores, logits = predictor.predict(
    box=np.array([x1, y1, x2, y2])
)

Model Optimization Pipeline

Prepare models for production:

def optimize_for_deployment(model, sample_input):
    # Step 1: Export to ONNX
    torch.onnx.export(
        model,
        sample_input,
        "model.onnx",
        opset_version=13,
        dynamic_axes={"input": {0: "batch"}}
    )

    # Step 2: Quantize (INT8)
    from onnxruntime.quantization import quantize_dynamic
    quantize_dynamic(
        "model.onnx",
        "model_quantized.onnx",
        weight_type=QuantType.QInt8
    )

    # Step 3: Benchmark
    import onnxruntime as ort
    session = ort.InferenceSession("model_quantized.onnx")
    benchmark_inference(session, sample_input)

    return "model_quantized.onnx"

Common Pitfalls to Avoid

  • Training from scratch when transfer learning would work
  • Not augmenting data appropriately for the task
  • Data leakage through improper train/test splits
  • Ignoring class imbalance in training data
  • Overfitting to training data without regularization
  • Not testing on diverse, real-world images
  • Deploying without latency and throughput testing
  • Assuming models work on all image types without testing

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

能力 5

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

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

平台分布

Claude Code

30%
按下载量换算1,297

OpenCode

22.36%
按下载量换算966

Gemini CLI

19.61%
按下载量换算848

Antigravity

11.61%
按下载量换算502

windsurf

8.63%
按下载量换算373

Cursor

3.27%
按下载量换算141

安全审计

Gen Agent Trust Hub

未通过

权限和风险

需要联网

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

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。来源字段存在多来源差异,先按来源优先级自动处理,无法消解时进入异常复核队列。

来源信息

继续浏览同类 Skills