Computer Vision
Work from image formation and geometry through recognition, tracking, and inspection.
Work from image formation and geometry through recognition, tracking, and inspection.
Before you start. Linear algebra, Machine Learning, and introductory Deep Learning.
Use Python 3.12 for the examples. Install the dependencies with python -m pip install numpy scipy scikit-learn torch. Run each week as a separate script. Try the worked example on paper first, then change one assumption in the lab and explain the result. All datasets are small or generated locally.
The 12 weeks
| Week | Lesson | What you’ll do |
|---|---|---|
| 1 | Pixels, colour, and sampling | See how downsampling creates false patterns and how a filter helps. |
| 2 | Filtering, gradients, and edges | Measure how smoothing changes the signal-to-noise ratio of an edge. |
| 3 | Feature matching and RANSAC | Fit a planar transform in the presence of bad matches. |
| 4 | Camera geometry and calibration | Use reprojection error to diagnose an incorrect pinhole camera. |
| 5 | Stereo and depth | Quantify how a one-pixel error affects close and distant depth estimates. |
| 6 | Image classification and dataset splits | Compare a split by frame with a split by scene. |
| 7 | CNNs and transfer learning | Fine-tune a small visual encoder and test it under a lighting change. |
| 8 | Object detection, IoU, and average precision | Match boxes once and see what duplicates and missed objects do. |
| 9 | Segmentation and boundary errors | Train a pixel classifier, then inspect where a good overlap score hides errors. |
| 10 | Motion and tracking through occlusion | Keep a motion prediction during an occlusion and examine an identity swap. |
| 11 | Vision transformers and image-text embeddings | Follow a patch tensor and compare image-text scores with supervised scores. |
| 12 | Capstone · Build a visual inspection system | Compare a rule and a learned detector under lighting, view, and camera changes. |
Further reading · Szeliski · Computer Vision: Algorithms and Applications