cv-opencv

cv-opencv is a skill for Claude Code from damionrashford/media-os. It costs 303 tokens per session (4,172 once invoked), scanned A, original, MIT.

A Python guide to OpenCV, a computer-vision library for working with images, video, cameras, and trained models.

In plain words
What is it for?
Use it to inspect images, capture video, detect faces or objects, track motion, calibrate cameras, stitch panoramas, and run ONNX models.
Why use it?
It provides one set of methods for common image and video tasks without requiring a large machine-learning framework.

Skill for Claude Code

Written for Claude Code: argument-hint in frontmatter.

Part of the media-os plugin — 121 skills, 11 agents, 5 hooks, 1 plugin shipped together

Good fit Use it to inspect images, capture video, detect faces or objects, track motion, calibrate cameras, stitch panoramas, and run ONNX models.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/damionrashford/media-os/cv-opencv
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add damionrashford/media-os --skill cv-opencv
Clone the repo
git clone --depth 1 https://github.com/damionrashford/media-os

Made for: Claude Code.

Or install media-os, the plugin that ships this one along with the rest of its 121 skills, 11 agents, 5 hooks, 1 plugin.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for cv-opencv

README.md
[![agentmods](https://agentmods.dev/badge/skills/damionrashford/media-os/cv-opencv/github.svg)](https://agentmods.dev/skills/damionrashford/media-os/cv-opencv)
Your own site
<a href="https://agentmods.dev/skills/damionrashford/media-os/cv-opencv"><img src="https://agentmods.dev/badge/skills/damionrashford/media-os/cv-opencv/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for cv-opencv

Your own site · 80×15
<a href="https://agentmods.dev/skills/damionrashford/media-os/cv-opencv"><img src="https://agentmods.dev/badge/skills/damionrashford/media-os/cv-opencv.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 303 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,172 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00303 $0.04172
Opus 5 $0.00151 $0.02086
Sonnet 5 $0.00061 $0.00834
Haiku 4.5 $0.00030 $0.00417

Measured 11d ago against content hash 66e1bb641181, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

cv-opencv scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/cv.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl -L -o models/face_detection_yunet_2023mar.onnx \
skills/cv-opencv/SKILL.md · 287 lines

How it starts

The opening of the file, as written. The whole thing — 287 lines — stays where its author put it; the contents beside it link to each section on GitHub.

cv-opencv

Context: $ARGUMENTS

OpenCV 4.x via the Python cv2 binding. Python is the first-class surface — the C++, Java (javadoc), and JS (opencv.js) APIs are parallel and the same concepts port over. Canonical docs: https://docs.opencv.org/4.x/.

Quick start

  • Inspect an image (shape/dtype/channels): → Step 2 (cv.py info)
  • Grab N frames from a webcam / file: → Step 3 (cv.py capture)
  • Detect faces with the modern YuNet model: → Step 4 (cv.py detect-faces)
  • Track a bounding box across frames: → Step 5 (cv.py track)
  • Run an ONNX model via the dnn module: → Step 6 (cv.py yolo)
  • Calibrate a camera from a chessboard: → Step 7 (cv.py calibrate)
  • Stitch a panorama: → Step 8 (cv.py stitch)

When to use

  • User asks for face / object / landmark detection, optical flow, tracking, panorama, camera calibration, or any classical CV operation.
  • Need to run an ONNX / TensorFlow / Caffe / Darknet model from Python without heavyweight frameworks (PyTorch, TF) — cv2.dnn is the lightweight path.
  • Need to read/write video via FFmpeg, GStreamer, V4L2, AVFoundation, or MSMF with a uniform API (cv2.VideoCapture / cv2.VideoWriter).
  • For pose/face landmark models trained by Google (MediaPipe Tasks), use the cv-mediapipe skill instead — it's a different ecosystem with its own Tasks API.

Step 1 — Install the right OpenCV wheel

Three PyPI wheels, mutually exclusive — picking the wrong one hides features or wastes install.

Wheel Includes Use when
opencv-python main repo only basic imgproc/videoio/dnn
opencv-contrib-python main + contrib (ximgproc, tracking, aruco) recommended default
opencv-python-headless main, no GUI (no imshow) servers / Docker
opencv-contrib-python-headless contrib, no GUI headless + contrib modules

Read the full file on GitHub · 287 lines

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 11d ago First seen · 287 lines · 303 tokens per session scan A 66e1bb641181

Subscribe to this mod's changes

cv-opencv is a skill published in the GitHub repository damionrashford/media-os (18 stars, last pushed 3mo ago), licensed MIT. It adds 303 tokens to every session and 4,172 once invoked, about $0.0015 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

jupyter-notebook

Iterative Python via live Jupyter kernel (hamelnb).

NousResearch/hermes-agent · 18 tokens

pennylane

Hardware-agnostic quantum ML framework with automatic differentiation. Use when training quantum circuits via gradients, building hybrid quantum-classical models, or needing device portability across IBM/Google/Rigetti/IonQ. Best for variational algorithms (VQE, QAOA), quantum neural networks, and integration with…

K-Dense-AI/scientific-agent-skills · 98 tokens

cuopt-numerical-optimization-api

LP, MILP, and QP (beta) with cuOpt — Python, C, and CLI. Use when the user is solving LP, MILP, or QP with any cuOpt interface.

NVIDIA/skills · 51 tokens

gh-address-comments

Help address review/issue comments on the open GitHub PR for the current branch using gh CLI; verify gh auth first and prompt the user to authenticate if not logged in.

foryourhealth111-pixel/Vibe-Skills · 39 tokens

cnsplots

Create, revise, and troubleshoot publication-ready scientific plots in Python with cnsplots, including distribution, regression, heatmap, genomics, survival, set, flow, and multi-panel figures. Use when a user asks for cnsplots code, Cell/Nature/Science-style visualization, precise physical figure dimensions…

faridrashidi/cnsplots · 79 tokens

neo4j-driver-python-skill

Neo4j Python Driver v6 — driver lifecycle, executequery, managed and explicit transactions, async (AsyncGraphDatabase), result handling, data type mapping, error handling, UNWIND batching, connection pool tuning, and causal consistency. Use when writing Python code that connects to Neo4j via GraphDatabase.driver…

neo4j-contrib/neo4j-skills · 186 tokens