Skip to content
Tutorials Center
My learning

Topics

Computer Vision Tutorial

Learn Computer Vision step by step: 46 lessons in 11 chapters with examples, quizzes, diagrams and projects.

Start learning →

of lessons completed

Images as Data

  1. 1 What Is Computer Vision? Learn what computer vision is, the main tasks (classification, detection, segmentation, tracking), classical versus deep learning pipelines, and how this course works.
  2. 2 Images as Arrays Understand pixels, (H, W, C) shapes, uint8 versus float images, row and column coordinates, cropping with slices and drawing synthetic images with imshow.
  3. 3 Color Channels and Color Spaces Split and merge RGB channels, convert to grayscale with perceptual weights, use HSV and Lab color spaces, and build color masks to pick out objects by hue.
  4. 4 Resolution, Sampling and Noise See how sampling creates pixels, why downsampling causes aliasing, compare nearest and bilinear interpolation, and generate Gaussian and salt-and-pepper noise.

Pixel Operations

  1. 5 Brightness, Contrast and Gamma Learn point operations on images: brightness and contrast, linear stretching, gamma correction, negatives, and how to avoid uint8 overflow and clipping bugs.
  2. 6 Histograms and Equalization Compute intensity histograms and cumulative distributions, build histogram equalization from scratch, understand the CLAHE idea and compare images by histogram.
  3. 7 Thresholding Turn a grayscale image into a binary mask with a global threshold, find the best cutoff with Otsu's method written from scratch, and handle uneven light.
  4. 8 Geometric Transforms Move, rotate, scale and shear images with affine matrices and homogeneous coordinates, and learn inverse mapping and interpolation with scipy.ndimage.

Filtering and Edges

  1. 9 Convolution and Correlation Learn how image kernels slide over pixels. Write correlation from scratch, see how it differs from convolution, and cover padding, stride and separable kernels.
  2. 10 Blurring and Denoising Compare box, Gaussian and median filters on Gaussian and salt-and-pepper noise, measure the results with PSNR, and learn how a bilateral filter keeps edges.
  3. 11 The Frequency Domain and the FFT See an image as a sum of waves: compute the 2D FFT with NumPy, read the spectrum, apply low-pass, high-pass and notch filters, and remove periodic noise.
  4. 12 Gradients and Edge Detection Understand image gradients, compute Sobel and Prewitt magnitude and direction, use the Laplacian, and build the Canny edge detector step by step in NumPy.
  5. 13 Morphological Operations Learn erosion, dilation, opening, closing, morphological gradient and top-hat with structuring elements, and use them to clean binary masks from thresholding.

Features and Matching

  1. 14 Image Pyramids and Scale Space Build Gaussian and Laplacian pyramids from scratch, rebuild an image exactly, and find blobs of any size with scale-normalized Laplacian of Gaussian.
  2. 15 Corner Detection Learn why corners make good landmarks, how the structure tensor tells flat, edge and corner apart, and write the Harris detector with non-maximum suppression.
  3. 16 Keypoint Descriptors and Matching Describe keypoints with normalized patches, match them by nearest neighbour with the ratio test, and use RANSAC to reject outliers and estimate a transform.
  4. 17 Integral Images, SURF and SIFT Compared Build an integral image, compute any box sum in four lookups, approximate the Hessian with box filters as SURF does, and compare SIFT, SURF and ORB side by side.
  5. 18 Hough Transform for Lines and Circles Detect lines and circles by voting: build the (rho, theta) accumulator from scratch, find peaks, extend the idea to circles, and learn where it breaks.

Segmentation and Shapes

  1. 19 Connected Components and Labeling Group binary pixels into objects with scipy.ndimage.label. Compare 4 and 8 connectivity, count objects, measure sizes and bounding boxes, and filter noise.
  2. 20 Contours and Shape Measurements Measure labeled regions: area, perimeter, centroid, bounding box, circularity, image moments and orientation, then collect them in a pandas table.
  3. 21 Segmentation by Clustering and Watershed Segment images without labels: k-means on pixel colors, region growing from a seed, and the distance transform with watershed to split touching objects.
  4. 22 Template Matching Find a small patch inside a larger image with a sliding window. Compare SSD and normalized cross-correlation, speed it up with the FFT, and see its limits.

Classical Machine Learning for Images

  1. 23 Hand-Crafted Features and HOG Why raw pixels make poor features, how gradient-orientation histograms and HOG describe shape, and how color histograms help. Built from scratch in NumPy.
  2. 24 Classifying Handwritten Digits Train logistic regression and SVM classifiers on the 8x8 digits dataset, compare raw pixels with HOG features, and read a confusion matrix to see the errors.
  3. 25 PCA, Eigenfaces and Image Compression Use principal component analysis on images: flatten, fit PCA with scikit-learn, read eigen-images, measure reconstruction error, and compress with SVD.

Neural Networks for Vision

  1. 26 The Convolutional Layer How a convolutional layer works: learned kernels, feature maps, channels, output size, parameter counts versus dense layers, and a forward pass in NumPy.
  2. 27 Pooling and CNN Architectures Learn max and average pooling, compute receptive fields, trace layer shapes with a helper, and see why residual connections let networks grow very deep.
  3. 28 Classic CNN Architectures: LeNet, VGG and DenseNet Trace the history from LeNet to VGG and DenseNet: count layers and parameters in Python, see the design rules behind VGG-16 and VGG-19, and how dense blocks work.
  4. 29 Training a Small Network on Images Train a small neural network on handwritten digits, read loss and accuracy curves, spot overfitting, and fight it with data augmentation written in NumPy.
  5. 30 Transfer Learning and Modern Vision Models Reuse pretrained vision models: feature extraction versus fine-tuning, how vision transformers cut images into patches, and what foundation models add.

Detection, Segmentation and Video

  1. 31 Object Detection Basics Learn how detectors find objects: bounding boxes, IoU and non-maximum suppression written from scratch, sliding windows, anchors, and box precision and recall.
  2. 32 Deep Segmentation: FCN, SegNet, PSPNet, FPN and Panoptic Understand how segmentation networks upsample and gather context: transposed convolution, SegNet unpooling, PSPNet pyramid pooling, FPN, Mask R-CNN, panoptic merging and GrabCut.
  3. 33 Semantic Segmentation and Its Metrics Understand semantic segmentation: masks as label arrays, pixel accuracy, IoU and Dice from a confusion matrix, class imbalance, the U-Net idea and mask cleanup.
  4. 34 Motion, Optical Flow and Tracking Detect motion with frame differencing and background subtraction, estimate optical flow with Lucas-Kanade, then track objects with a centroid tracker and a Kalman filter.
  5. 35 Super-Resolution and Image Colorization Learn how to enlarge and restore images: interpolation, PSNR, learned super-resolution from SRCNN to ESRGAN, pixel shuffle, and colorization in Lab and YCbCr, with NumPy code.
  6. 36 Satellite and Remote Sensing Imagery Learn remote sensing basics for computer vision: four kinds of resolution, spectral bands, NDVI and NDWI indices, land-cover clustering and change detection, with NumPy code.

Evaluating and Shipping Vision Systems

  1. 37 Evaluating Vision Models Learn to judge an image model honestly: why accuracy misleads, per-class precision and recall, confusion matrices, mAP, data leakage, dataset shift and slices.
  2. 38 Pitfalls, Ethics and Deployment What goes wrong when a vision model leaves the notebook: biased data, privacy, adversarial examples, lighting changes, latency, quantization and monitoring.

Projects

  1. 39 Project: Document Scanner Build a document scanner step by step: threshold the page, find its four corners, warp it flat with a perspective transform and clean up the ink.
  2. 40 Project: Counting Objects Count coins in a generated photo: threshold, clean the mask with morphology, label regions, filter by area, split touching coins and build a sizes table.
  3. 41 Project: Image Search by Similarity Build image search from scratch: color histogram and HOG features, distance ranking, nearest neighbours and honest evaluation with precision@k and MAP.
  4. 42 Project: A Small Photo Filter Toolkit Build blur, sharpen, sepia, vignette and pixelate filters as small composable functions, chain them into pipelines and test them with array assertions.
  5. 43 Project: Handwritten Digit Recognizer Build a digit recognizer end to end: preprocess images, engineer features, pick a model with cross-validation, study the errors and write a short report.

Practice and Review

  1. 44 Practice Exercises with Solutions Practice computer vision with 18 graded exercises on arrays, filters, thresholds, features, segmentation and metrics. Every solution runs live in your browser.
  2. 45 Computer Vision Interview Questions Prepare for computer vision interviews: convolution vs correlation, Otsu, Canny, receptive field, IoU and NMS, overfitting and bias, with short answers and code.
  3. 46 Computer Vision Cheat Sheet A one-page computer vision cheat sheet: array shape and dtype rules, common kernels, key formulas, metric definitions, a pipeline checklist and frequent mistakes.