Agent skill
opencv
OpenCV computer vision library. Use for image processing.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/opencv
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-headlessfor server deployments (smaller, no GUI deps).
Don't:
- Don't implement Deep Learning training: Use PyTorch. Use OpenCV only for inference/preprocessing.
References
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?