Deep Computer Vision (CNN)

Lesson 1

The visual revolution

How deep learning rewrote the rules of image recognition

The Visual Revolution

Introduction to vision as a human and machine capability

For humans, sight is one of the main ways we understand the world, reading faces, streets, and traffic lights, often without thinking hard about each step. This lesson is about the same idea for machines: using raw images or video so computers can see (in a useful, engineered sense). Deep learning is the usual tool today for turning pixels into predictions.

Human vision

  • Eyes capture light and the brain interprets scenes, objects, depth, and motion.
  • Humans perceive meaning directly.
  • Vision is continuous and semantic.
  • Humans reason using memory and context.
  • Humans generalize naturally across new scenes.
  • Output: perception and action.

Machine vision

  • Cameras capture images as pixel grids represented numerically as /matrices.
  • Models process numerical pixel values to learn patterns and representations.
  • Neural networks transform pixel tensors into embeddings, predictions, and actions.
  • Models learn statistical patterns from training data.
  • Output: classification, detection, segmentation, captioning, tracking, or control signals.

Concretely, an image enters a model as a numeric tensor whose shape depends on how many channels it carries:

  • Grayscale image2D matrix of shape (H × W), one intensity value per pixel.
  • RGB image3D tensor of shape (H × W × 3), where each pixel contains Red, Green, and Blue intensity values.

Same patch, two tensor shapes

Grayscale · (H × W) — one value per pixel

3014090200255601280175
shape (3 × 3) = 9 numbers

RGB · (H × W × 3) — three values per pixel

309016020014060909090255000255000255128017513013013024020040
shape (3 × 3 × 3) = 27 numbers

To a model an image is just this grid of numbers — grayscale carries one channel, RGB stacks three (R, G, B) per pixel.

Color and gray pixels of an image

Animation: color and grayscale pixels making up an image

Pixels of an image

,

Purufromlexai,

CC0 1.0

(public domain dedication), via Wikimedia Commons.


Check your understanding

1 / 5

Why do real-world vision tasks usually need more than a single class label?


Practice it yourself

Images are just tensors. Turn pixels into the arrays a model eats — real Python, hidden tests, no setup.

Test your understanding

Prof is ready

Prof will ask you questions about The Visual Revolution — not explain it. You'll be surprised what you don't know until you have to say it.

Finished this lesson?

Read through the lesson first (0/20s).