← All courses

Course 7 · Computer Vision · about 11 min

To a computer, an image is numbers

By the end of this course you can explain how computers see images, how filters find features, and which vision task fits which problem.

A digital image is a grid of pixels. In a greyscale image each pixel is one number, usually from 0 (black) to 255 (white). A colour image stores three numbers per pixel: red, green and blue. A 1000 × 1000 photo is therefore three million numbers.

Computer vision is the field of turning those numbers into useful answers: what is in the picture, where it is, and what is happening.

Try itComputer vision or not?

CheckHow many numbers describe one pixel in a normal colour image?

Step 2

Filters find edges

A filter (or kernel) is a tiny grid of numbers, often 3 × 3. It slides across the image; at each position it multiplies the pixels under it by its numbers and adds them up. The result is a new image that highlights one kind of feature, such as vertical edges.

This sliding operation is called a convolution, the "C" in CNN. The key point: a CNN isn't given its filters. It learns their numbers during training.

Try itRun a filter

This 10 × 10 image shows a bright square. Pick a filter and compare.

CheckIn a CNN, who decides the numbers inside each filter?

Step 3

Classify, detect, segment

Three core vision tasks, from simple to detailed:

YOLO ("You Only Look Once"), published in 2015, detects all objects in a single pass, fast enough for live video. Its successors are still widely used.

Try itWhich task is it?

CheckYou need the exact outline of each object, pixel by pixel. Which task?

Step 4

Shortcuts and how to avoid them

Vision models learn whatever separates the labels, and that isn't always the object. Researchers have shown how a wolf-versus-husky classifier can end up looking at the background: wolves were photographed on snow, so "snow" meant "wolf".

Defences: varied training images, testing on photos from different settings, and data augmentation: flipping, rotating, cropping and changing the brightness of training images so the model has to learn the object itself.

PredictA model labels every animal photographed on snow as "wolf", even huskies. What did it learn?

CheckWhy flip, rotate and crop training images?

Step 5

Vision in the real world

Computer vision checks products on factory lines, spots crop disease from drone images, helps doctors read scans, and describes scenes for blind and partially sighted people.

Some uses need extra care because they affect people's rights. Identifying people from cameras raises serious privacy questions. In the EU, the AI Act bans emotion recognition in workplaces and schools (with narrow medical and safety exceptions) and strictly limits real-time face identification in public spaces.

Try itLow risk, or needs extra care?

CheckWhich vision use most needs legal and ethical checks?

Step 6 · Recap

What you learned

Quick reviewThree questions from memory. No scrolling back.

Course 8 moves from images to words: natural language processing. Mark this course complete below when you're ready.