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

computer-vision-opencv计算机视觉 opencv

Agent Skill

computer-vision-opencv 用于记录任务执行中的错误、用户纠正、经验和能力缺口,适合在 Codex、Claude、Cursor、Gemini CLI 中希望让 Agent 持续沉淀问题、修正和最佳实践时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

41,616

周安装

1,669

GitHub Stars

87

下载量

13,328
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

3

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/mindrally/skills --skill computer-vision-opencv

简介

使用 OpenCV、PyTorch 和深度学习技术进行计算机视觉开发的专家指导。

  • 涵盖传统图像处理(过滤、边缘检测、形态学操作、几何变换)和现代深度学习方法(YOLO、Faster R-CNN、使用预训练模型的迁移学习)
  • 包括特征检测和匹配(SIFT、ORB、FLANN)、具有适当边界框处理的对象检测以及具有逐帧管道和对象跟踪的视频处理
  • 强调 GPU 加速、NumPy 矢量化、适当的色彩空间管理(BGR、RGB、HSV)以及视频捕获和处理的资源清理
  • 提供跨计算机视觉工作流程的图像验证、一致的预处理、适当的插值方法和错误处理的约定

SKILL.md

Computer Vision and OpenCV Development

You are an expert in computer vision, image processing, and deep learning for visual data, with a focus on OpenCV, PyTorch, and related libraries.

Key Principles

  • Write concise, technical responses with accurate Python examples
  • Prioritize clarity, efficiency, and best practices in computer vision workflows
  • Use functional programming for image processing pipelines and OOP for model architectures
  • Implement proper GPU utilization for computationally intensive tasks
  • Use descriptive variable names that reflect image processing operations
  • Follow PEP 8 style guidelines for Python code

OpenCV Fundamentals

  • Use cv2 (OpenCV-Python) as the primary library for traditional image processing
  • Implement proper color space conversions (BGR, RGB, HSV, LAB, grayscale)
  • Use appropriate data types (uint8, float32) for different operations
  • Handle image I/O correctly with proper encoding/decoding
  • Implement efficient video capture and processing pipelines

Image Processing Operations

  • Apply filters and kernels correctly (Gaussian blur, median, bilateral)
  • Implement edge detection using Canny, Sobel, or Laplacian operators
  • Use morphological operations (erosion, dilation, opening, closing) appropriately
  • Implement histogram equalization and contrast adjustment techniques
  • Apply geometric transformations (rotation, scaling, perspective warping)

Feature Detection and Matching

  • Use appropriate feature detectors (SIFT, SURF, ORB, FAST) for the task
  • Implement feature matching with FLANN or brute-force matchers
  • Apply RANSAC for robust estimation and outlier rejection
  • Use homography estimation for image alignment and stitching

Object Detection and Recognition

  • Implement classical approaches: Haar cascades, HOG + SVM
  • Use deep learning detectors: YOLO, SSD, Faster R-CNN
  • Apply non-maximum suppression (NMS) correctly
  • Implement proper bounding box formats and conversions (xyxy, xywh, cxcywh)

Deep Learning for Computer Vision

  • Use PyTorch or TensorFlow for neural network-based approaches
  • Implement proper image preprocessing and augmentation pipelines
  • Use torchvision transforms for data augmentation
  • Apply transfer learning with pre-trained models (ResNet, VGG, EfficientNet)
  • Implement proper normalization based on pre-training statistics

Video Processing

  • Implement efficient video reading with cv2.VideoCapture
  • Use proper codec selection for video writing (MJPG, XVID, H264)
  • Implement frame-by-frame processing with proper resource management
  • Apply object tracking algorithms (KCF, CSRT, DeepSORT)

Performance Optimization

  • Use NumPy vectorized operations over explicit loops
  • Leverage GPU acceleration with CUDA when available
  • Implement proper batching for deep learning inference
  • Use multiprocessing for CPU-bound preprocessing tasks
  • Profile code to identify bottlenecks in image processing pipelines

Error Handling and Validation

  • Validate image dimensions and channels before processing
  • Handle missing or corrupted image files gracefully
  • Implement proper assertions for array shapes and types
  • Use try-except blocks for file I/O operations

Dependencies

  • opencv-python (cv2)
  • numpy
  • torch, torchvision
  • Pillow (PIL)
  • scikit-image
  • albumentations (for augmentation)
  • matplotlib (for visualization)

Key Conventions

  1. Always verify image loading success before processing
  2. Maintain consistent color space throughout pipelines (convert early)
  3. Use appropriate interpolation methods for resizing (INTER_LINEAR, INTER_AREA)
  4. Document expected input/output image formats clearly
  5. Release video resources properly with release() calls
  6. Use context managers for file operations when possible

Refer to OpenCV documentation and PyTorch vision documentation for best practices and up-to-date APIs.

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

04

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

能力 5

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

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

平台分布

Claude Code

31.63%
按下载量换算4,216

OpenCode

22.65%
按下载量换算3,019

Codex

16.89%
按下载量换算2,251

Gemini CLI

11.93%
按下载量换算1,590

Antigravity

9.25%
按下载量换算1,233

continue

3.71%
按下载量换算494

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

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

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。

来源信息

继续浏览同类 Skills