/python-master:python-opencvfrom python-master
Complete OpenCV computer vision system for Python. Handles image I/O, filtering, edge/contour detection, video capture, feature detection (SIFT/ORB), template matching, morphological ops, and deep learning with DNN. Covers BGR and coordinate gotchas.
Ships in python-master. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
| Function | Purpose | Gotcha |
|---|---|---|
cv2.imread(path) | Load image | Returns None if path invalid (no error!) |
cv2.imwrite(path, img) | Save image | Expects BGR, not RGB |
cv2.cvtColor(img, code) | Color conversion | BGR is default, not RGB |
cv2.VideoCapture(src) | Video/camera input | Always check isOpened() and release() |
cv2.VideoWriter(...) | Save video | Expects BGR frames, codec matters |
cv2.resize(img, (w, h)) | Resize image | Size is (width, height), not (height, width) |
| Coordinate System | Order | Usage |
|---|---|---|
| NumPy indexing | img[row, col] = img[y, x] | Pixel access |
| Image shape | (height, width, channels) | Shape is (rows, cols, ch) |
| OpenCV functions | (x, y) | Drawing functions |
| Resize/ROI | (width, height) | Size parameters |
| Color Conversion | Code | Note |
|---|---|---|
| BGR to RGB | cv2.COLOR_BGR2RGB | For Matplotlib display |
| BGR to Gray | cv2.COLOR_BGR2GRAY | Single channel output |
| BGR to HSV | cv2.COLOR_BGR2HSV | H: 0-179, S/V: 0-255 |
| Interpolation | Best For | Speed |
|---|---|---|
INTER_NEAREST | Speed, pixelated OK | Fastest |
INTER_LINEAR | General purpose (default) | Fast |
INTER_AREA | Downscaling | Medium |
INTER_CUBIC | Upscaling quality | Slow |
INTER_LANCZOS4 | Best upscaling | Slowest |
Use for computer vision and image processing:
Related skills:
python-fundamentals-313python-asynciopython-type-hintsOpenCV (Open Source Computer Vision Library) is the most popular computer vision library. Python bindings (opencv-python) provide access to all functionality through NumPy arrays. OpenCV uses BGR color format by default, which is a critical gotcha.
# CPU-only (most common)
pip install opencv-python
# With contrib modules (SIFT, SURF, extra features)
pip install opencv-contrib-python
# Headless (no GUI, for servers)
pip install opencv-python-headless
# Verify installation
python -c "import cv2; print(cv2.__version__)"
cv2.imwrite.(height, width, channels), NumPy indexing is img[row, col], but OpenCV drawing functions use (x, y).cv2.imread returns None on missing or undecodable files; always check before using the image.VideoCapture and GUI windows must be released/closed in finally or context-manager cleanup paths.uint8; use OpenCV arithmetic or explicit float normalization when needed.Read references/opencv-critical-gotchas.md for the full preserved examples and safe patterns.
The detailed API patterns and code recipes have been split into focused references. Load the file that matches the user's task.
Read this for full examples of the most common OpenCV failure modes:
cv2.imwrite usagecv2.imread None checks and pathlib validationVideoCapture release patterns and context-manager wrapperuint8 overflow, cv2.add, float normalization, Canny dtype expectationsRead this for everyday OpenCV work:
cv2.imread flags, loading from URLs, cv2.imwrite quality params, multi-image batch loadingVideoWriter codecs (mp4v, XVID, H264), FPS/resolution probingfindContours, area/perimeter, bounding boxes, contour approximation, hierarchycv2.matchTemplate, multi-scale matching, TM_CCOEFF_NORMED thresholdingcv2.dnn.readNet for ONNX/TF/Caffe, blob preprocessing, YOLO/MobileNet inferencecv2.imshow + waitKey loops, Jupyter cv2.imshow workaround with Matplotlibcv2.UMat for OpenCL, cv2.cuda GPU operationsRead this for specialized computer-vision pipelines:
undistortcv2.Stitcher panorama assemblyThis skill should activate when the user mentions any of: OpenCV, cv2, BGR, image processing, contours, Canny, Hough transform, template matching, ORB/SIFT/AKAZE, VideoCapture, VideoWriter, cv2.dnn, cv2.cuda, computer vision in Python.
What SKILL.md sets; muted values are Claude Code's defaults
13 skills in this plugin
/python-asyncioComplete Python asyncio system.
PROACTIVELY activate for: (1) async/await syntax, (2) asyncio.gather for concurrent execution, (3) TaskGroup (3.11+), (4) Semaphores for rate limiting, (5) Timeouts with asyncio.timeout, (6) Producer-consumer with Queue, (7) Async generators and context managers, (8) uvloop performance, (9) Common async gotchas.
Provides: Concurrent patterns, I/O optimization, async libraries (aiohttp, httpx, asyncpg).
Ensures correct async patterns without blocking.
/python-cloudflareComplete Python Cloudflare deployment system.
PROACTIVELY activate for: (1) Python Workers with Pyodide, (2) FastAPI on Workers, (3) Cloudflare Containers for heavy compute, (4) Service bindings (RPC), (5) Environment variables in Workers, (6) Cold start optimization, (7) Workflows for durable execution, (8) GPU containers for AI.
Provides: Worker code patterns, wrangler config, Dockerfile templates, FastAPI integration.
Ensures edge deployment with proper architecture choices.
/python-fastapiComplete FastAPI production system.
PROACTIVELY activate for: (1) Project structure (scalable layout), (2) Pydantic schemas (input/output separation), (3) Dependency injection, (4) Async database with SQLAlchemy, (5) JWT authentication, (6) Error handling patterns, (7) Docker deployment, (8) Gunicorn + Uvicorn production, (9) Rate limiting, (10) Testing with httpx.
Provides: Project templates, schema patterns, auth setup, Docker config.
Ensures production-ready FastAPI applications.
/python-ffmpegExpert guide to FFmpeg from Python for video/audio processing, encoding, streaming, and media manipulation.
PROACTIVELY activate for: (1) Python+FFmpeg via ffmpeg-python, PyAV, subprocess, moviepy; (2) encoding (H.264, H.265/HEVC, VP9/WebM, AV1); (3) hardware acceleration (NVIDIA NVENC, Intel QSV, AMD AMF, VAAPI); (4) audio extraction, conversion, filter chains; (5) video filters (scale, crop, rotate, text/image overlays, color); (6) trim/concat workflows; (7) HLS, DASH, RTMP streaming; (8) metadata probing (ffprobe, ffmpeg.probe); (9) thumbnails (single + sprite sheets); (10) frame-accurate PyAV; (11) bug debugging (audio loss after filters, subprocess deadlocks, Windows paths, -y prompts); (12) GIF, speed change, picture-in-picture, blur/quality detection.
Provides: library selection, install steps, copy-pasteable encoding recipes, hardware-accel flag reference, error handling, subprocess best practices, performance tuning for production Python+FFmpeg pipelines.
/python-fundamentals-313Complete Python 3.13+ fundamentals system.
PROACTIVELY activate for: (1) Python 3.13 free-threading (no-GIL), (2) JIT compiler usage, (3) Pattern matching syntax, (4) Walrus operator, (5) F-string features 3.12+, (6) Type parameter syntax 3.12+, (7) Exception groups, (8) Dataclasses and enums, (9) Context managers.
Provides: Modern syntax, performance features, best practices, naming conventions.
Ensures correct Python 3.13+ patterns with optimal performance.
/python-github-actionsComplete Python GitHub Actions system.
PROACTIVELY activate for: (1) uv-based CI workflows (10-100x faster), (2) Matrix testing across Python versions, (3) Dependency caching with setup-uv, (4) Parallel test execution, (5) Reusable workflows, (6) Publishing to PyPI with trusted publishing, (7) Code coverage with codecov, (8) Security scanning.
Provides: Workflow templates, caching config, matrix strategies, composite actions.
Ensures fast, reliable CI/CD pipelines.
2 plugins ship this exact skill · first indexed Jul 19, 2026
npx claudepluginhub josiahsiegel/claude-plugin-marketplace --plugin python-masterOther plugins' skills for the same job