Deep Computer Vision (CNN)
Lesson 1The 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 image → 2D matrix of shape (H × W), one intensity value per pixel.
- RGB image → 3D 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
RGB · (H × W × 3) — three values per pixel
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
Purufromlexai,
CC0 1.0
(public domain dedication), via Wikimedia Commons.
Check your understanding
1 / 5Why 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.