A collection of Image Processing and Computer Vision code snippets.
Snippets | Description |
---|---|
WebCam | Accessing webcam frames using OpenCV. |
ImageGrab | Take a screenshot, save it as PNG and show the image. |
Resizing | Resize an image using OpenCV resizing methods. |
Smoothing | Smooth an image using OpenCV filters. |
Filter2D | Apply filter to an image using predefined kernels. |
Watermark | Add watermark to images with OpenCV. |
Youtube | Load a Youtube video and process each frame. |
EdgeDetection | Edge detection using OpenCV (Canny, Sobel and Laplacian). |
Denoising | Remove noise from image using Non-local Means Denoising. |
ImageHashing | Calculate image hashing and distance hashing (dhash). |
ExtractColors | Given an input image, extract the main colors. |
SuperResolution | Super resolution using deep learning on OpenCV. |
FaceDetection | Face detection using cascade classifiers. |
AnonymizeFaces | Anonymize people's faces by blurring them. |
LongExposure | Given a video input creates a long exposure effect. |
ForegroundSegmentation | Foreground segmentation and extraction with GrabCut. |
TemplateMatching | Multi-template matching using OpenCV. |
FaceRecognition (LBPH) | Face recognition using LBPH algorithm. |
HandTracking | Hand tracking using OpenCV and Media Pipe. |
HandGesture | Shoot balls using your fingers. |
To run the face recognition algorithms we need to download the Yale Face Database:
$ bash download_yale_faces.sh