modelscope.cn

opencv

OpenCV computer vision library. Use for image processing.

Installation

$ npx skills add https://modelscope.cn

Also in this package

Other skills from modelscope.cn · top by installs.

npx skills add https://modelscope.cn

Browse all from modelscope.cn

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 1,117 B

History

  1. First recorded snapshot · 0 installs

SKILL.md

OpenCV

OpenCV is the fundamental library for Image Processing. v5.0 (2025) modernizes deep learning support and licensing.

When to Use

  • Image Manipulation: Resizing, cropping, color space conversion (BGR -> RGB).
  • Classic CV: Edge detection (Canny), Feature matching (SIFT/ORB).
  • Video I/O: Reading/Writing webcams or video files.

Core Concepts

BGR

OpenCV reads images as Blue-Green-Red (not RGB) by default. History quirks.

cv::Mat

The core matrix structure (in C++). In Python, it's just a NumPy array.

DNN Module

Running darknet/onnx models directly in OpenCV (lightweight inference).

Best Practices (2025)

Do:

  • Use it for Preprocessing: cv2.resize() is highly optimized.
  • Use headless: pip install opencv-python-headless for server deployments (smaller, no GUI deps).

Don't:

  • Don't implement Deep Learning training: Use PyTorch. Use OpenCV only for inference/preprocessing.

References