OpenCV Python
The world's most popular computer vision library with Python bindings — image processing, video, and ML pipelines.
OpenCV Python
opencv-python provides unofficial pre-built OpenCV packages for Python, making the world's most widely used computer vision library trivially installable. OpenCV covers the full spectrum from classical image processing to deep neural network inference, and is the backbone of countless production vision systems.
Key Features
- 2500+ optimised algorithms: filters, transforms, feature detectors (SIFT, ORB), optical flow
- Camera calibration, stereo vision, and 3D reconstruction
- Built-in DNN module: run ONNX, TensorFlow, PyTorch, and Caffe models directly
- Video I/O: read/write files, RTSP streams, and webcams with a unified API
- GPU acceleration via CUDA backend; OpenCL support on mobile and embedded
Quick Start
pip install opencv-python
import cv2
img = cv2.imread("image.jpg")
gray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY)
blurred = cv2.GaussianBlur(gray, (5, 5), 0)
edges = cv2.Canny(blurred, 50, 150)
cv2.imwrite("edges.jpg", edges)
npx ai-supply add opencv-python-vision
Curated mirror of the open-source OpenCV (MIT). Get it from the source.
Compromise signals — malicious or tampered code (leaked secrets, backdoors, a dropped executable) — reduce the score, and known dependency CVEs carry a bounded penalty (they warrant review but never QUARANTINE — update the dependency to clear). Other dangerous-by-capability traits are risk surface, expected for some capabilities. Every finding is mapped to its OWASP control below.
Findings mapped to the OWASP Top 10 for LLM Applications (2025) and the OWASP Machine Learning Security Top 10. Expand any flagged control for the exact findings — compromise reduces the score; expected/risk-surface do not, except a known CVE, which carries a small bounded penalty (high/critical → Review).
The same gate an agent runs before installing (POST /api/v1/trust/opencv-python-vision/check). Click a policy:
Consume OpenCV Python programmatically. Authenticate with an API key or session — see Authorize an agent.
# Agents: CHECK BEFORE YOU INSTALL (no auth) — score, grade, level, capability manifest
curl https://ai-supply.store/api/v1/trust/opencv-python-vision
# Gate against your org policy (returns { pass, violations })
curl -X POST https://ai-supply.store/api/v1/trust/opencv-python-vision/check \
-H "Content-Type: application/json" \
-d '{"minGrade":"B","denyPermissions":["shell"],"denyUnknownEgress":true}'
# CLI
npx ai-supply add opencv-python-vision
# REST (install → download)
curl -X POST https://ai-supply.store/api/v1/listings/opencv-python-vision/install \
-H "Authorization: Bearer $AIM_KEY"
# MCP tool
install_listing({ "slug": "opencv-python-vision" })OpenAPI spec →Curated mirror — latest upstream source. See the repository for tagged releases.