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

WeekLessonWhat you’ll do
1Pixels, colour, and samplingSee how downsampling creates false patterns and how a filter helps.
2Filtering, gradients, and edgesMeasure how smoothing changes the signal-to-noise ratio of an edge.
3Feature matching and RANSACFit a planar transform in the presence of bad matches.
4Camera geometry and calibrationUse reprojection error to diagnose an incorrect pinhole camera.
5Stereo and depthQuantify how a one-pixel error affects close and distant depth estimates.
6Image classification and dataset splitsCompare a split by frame with a split by scene.
7CNNs and transfer learningFine-tune a small visual encoder and test it under a lighting change.
8Object detection, IoU, and average precisionMatch boxes once and see what duplicates and missed objects do.
9Segmentation and boundary errorsTrain a pixel classifier, then inspect where a good overlap score hides errors.
10Motion and tracking through occlusionKeep a motion prediction during an occlusion and examine an identity swap.
11Vision transformers and image-text embeddingsFollow a patch tensor and compare image-text scores with supervised scores.
12Capstone · Build a visual inspection systemCompare a rule and a learned detector under lighting, view, and camera changes.

Further reading · Szeliski · Computer Vision: Algorithms and Applications