processing-computer-vision-tasks

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Computer Vision Processor

计算机视觉处理器

This skill provides automated assistance for computer vision processor tasks.
该技能为计算机视觉处理任务提供自动化辅助。

Overview

概述

This skill provides automated assistance for computer vision processor tasks. This skill empowers Claude to leverage the computer-vision-processor plugin to analyze images, detect objects, and extract meaningful information. It automates computer vision workflows, optimizes performance, and provides detailed insights based on image content.
该技能为计算机视觉处理任务提供自动化辅助。 该技能使Claude能够借助computer-vision-processor插件分析图像、检测目标并提取有意义的信息。它可自动化计算机视觉工作流、优化性能,并基于图像内容提供详细的分析见解。

How It Works

工作原理

  1. Analyzing the Request: Claude identifies the need for computer vision processing based on the user's request and trigger terms.
  2. Generating Code: Claude generates the appropriate Python code to interact with the computer-vision-processor plugin, specifying the desired analysis type (e.g., object detection, image classification).
  3. Executing the Task: The generated code is executed using the
    /process-vision
    command, which processes the image and returns the results.
  1. 分析请求:Claude根据用户的请求和触发词判断是否需要进行计算机视觉处理。
  2. 生成代码:Claude生成合适的Python代码,与computer-vision-processor插件交互,并指定所需的分析类型(如目标检测、图像分类)。
  3. 执行任务:生成的代码通过
    /process-vision
    命令执行,该命令会处理图像并返回结果。

When to Use This Skill

使用场景

This skill activates when you need to:
  • Analyze an image for specific objects or features.
  • Classify an image into predefined categories.
  • Segment an image to identify different regions or objects.
当你需要完成以下任务时,可使用该技能:
  • 分析图像中的特定目标或特征。
  • 将图像分类到预定义的类别中。
  • 对图像进行分割,识别不同的区域或目标。

Examples

示例

Example 1: Object Detection

示例1:目标检测

User request: "Analyze this image and identify all the cars and pedestrians."
The skill will:
  1. Generate code to perform object detection on the provided image using the computer-vision-processor plugin.
  2. Return a list of bounding boxes and labels for each detected car and pedestrian.
用户请求:“分析这张图片,识别所有的汽车和行人。”
该技能会:
  1. 生成代码,借助computer-vision-processor插件对提供的图像执行目标检测。
  2. 返回每个检测到的汽车和行人的边界框及标签信息。

Example 2: Image Classification

示例2:图像分类

User request: "Classify this image. Is it a cat or a dog?"
The skill will:
  1. Generate code to perform image classification on the provided image using the computer-vision-processor plugin.
  2. Return the classification result (e.g., "cat" or "dog") along with a confidence score.
用户请求:“对这张图片进行分类,判断是猫还是狗?”
该技能会:
  1. 生成代码,借助computer-vision-processor插件对提供的图像执行图像分类。
  2. 返回分类结果(如“猫”或“狗”)及置信度分数。

Best Practices

最佳实践

  • Data Validation: Always validate the input image to ensure it's in a supported format and resolution.
  • Error Handling: Implement robust error handling to gracefully manage potential issues during image processing.
  • Performance Optimization: Choose the appropriate computer vision techniques and parameters to optimize performance for the specific task.
  • 数据验证:始终验证输入图像,确保其格式和分辨率符合要求。
  • 错误处理:实现健壮的错误处理机制,以优雅地处理图像处理过程中可能出现的问题。
  • 性能优化:选择合适的计算机视觉技术和参数,针对特定任务优化性能。

Integration

集成

This skill utilizes the
/process-vision
command provided by the computer-vision-processor plugin. It can be integrated with other skills to further process the results of the computer vision analysis, such as generating reports or triggering actions based on detected objects.
该技能使用computer-vision-processor插件提供的
/process-vision
命令。它可与其他技能集成,进一步处理计算机视觉分析的结果,例如生成报告或根据检测到的目标触发相应操作。

Prerequisites

前提条件

  • Appropriate file access permissions
  • Required dependencies installed
  • 具备合适的文件访问权限
  • 已安装所需依赖项

Instructions

使用说明

  1. Invoke this skill when the trigger conditions are met
  2. Provide necessary context and parameters
  3. Review the generated output
  4. Apply modifications as needed
  1. 当满足触发条件时调用该技能
  2. 提供必要的上下文和参数
  3. 查看生成的输出结果
  4. 根据需要进行修改

Output

输出

The skill produces structured output relevant to the task.
该技能会生成与任务相关的结构化输出。

Error Handling

错误处理

  • Invalid input: Prompts for correction
  • Missing dependencies: Lists required components
  • Permission errors: Suggests remediation steps
  • 无效输入:提示用户修正
  • 缺少依赖项:列出所需组件
  • 权限错误:建议修复步骤

Resources

资源

  • Project documentation
  • Related skills and commands
  • 项目文档
  • 相关技能和命令