opencv
Installation
SKILL.md
OpenCV — Computer Vision Library
Overview
OpenCV (cv2 in Python) covers image filtering, geometry, feature detection, video I/O, calibration and inference of ONNX models through cv2.dnn. Images are NumPy arrays in BGR order. The sections below show the operations most pipelines are built from; the snippets were run against opencv-python-headless 5.0.0.
Instructions
Install the package, load frames with cv2.imread / cv2.VideoCapture, process them as arrays, and write results with cv2.imwrite / cv2.VideoWriter.
Image Processing
import cv2
import numpy as np
# Read and display
img = cv2.imread("photo.jpg")
gray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY)