Each square is a pixel, represented by a number indicating brightness (0 = Black, 255 = White).
Adding Colour (RGB)
Colour images are just three matrices stacked on top of each other: Red, Green, and Blue.
A self-driving car processing a 4K camera feed at 60 frames per second is analysing roughly 1.5 billion numbers every second.
The Pedestrian Problem
How do we find a person in that sea of 1.5 billion numbers?
Step 1:
We have to find the boundaries between objects.
We need to find the edges.
Finding Edges Mathematically
An "edge" is simply a place in the image where the numbers suddenly change from very high (bright) to very low (dark).
We find this using a mathematical operation called Convolution.
The Kernel Filter
We slide a tiny 3x3 grid of numbers (a kernel) across the entire image.
It multiplies the pixels and highlights areas with sharp contrast.
[ -1, -1, -1 ]
[ -1, 8, -1 ]
[ -1, -1, -1 ]
Convolution in Action
Input Matrix (RGB)
âž”
Apply Kernel
Output: Edge Map
Unplugged Activity 1
Edge Detection
The Setup
You have a 1D strip of pixels (numbers 0 to 9). 0 is black, 9 is white.
[1, 1, 2, 8, 9, 8, 2, 1]
Where is the "edge" of the object?
The Algorithm
To find the edge, we will calculate the derivative (the rate of change).
Task: Subtract the left pixel from the right pixel. Write the difference below.
1 - 1 = 0
2 - 1 = 1
8 - 2 = 6 (Massive change!)
The Debrief
You just acted as a Convolutional Neural Network (CNN) layer.
By scanning for massive numerical differences, the car's computer identifies the outline of a pedestrian against the pavement.
Beyond Edges: Bounding Boxes
Once edges are found, Machine Learning models (like YOLO) draw bounding boxes around recognized shapes.
The car calculates if the box's trajectory intersects with the car's trajectory.
[Pedestrian: 98.7%]
YOLO (You Only Look Once)
A popular, state-of-the-art machine learning algorithm used for real-time object detection in computer vision.
Key characteristics:
Speed
Global Context
Continuous Evolution
What if the camera is blinded?
Cameras fail in fog, heavy rain, or blinding sunlight.
Autonomous vehicles use Sensor Fusion: Combining Camera pixels with LiDAR (lasers) and Radar (radio waves).
LiDAR (Light Detection and Ranging)
LiDAR ACTIVE
3D Point Cloud
Pts/sec: 1.5M
LiDAR creates a perfect 3D point cloud, allowing the car to measure exact distances to the millimeter.
LiDAR (Light Detection and Ranging)
Part 2: ACT
Control Theory & Robotics
The Precision Problem
We've seen the pedestrian. Now we must brake.
Or, in the case of a surgical robot: The surgeon moves a joystick 25 millimeters; the robotic scalpel moves exactly 1 millimeter inside a patient.
How do we ensure the motor stops exactly where we want it to?
Precision in Action
The da Vinci Surgical System translates human hand movements into micro-movements inside the patient.
Without closed-loop feedback, this level of stability is impossible.
Precision in Action
Open-Loop vs. Closed-Loop
Open-Loop: You tell the system what to do, and hope it works. (e.g., A toaster. It heats for 2 minutes, regardless of if the bread is frozen or already burnt).
Closed-Loop: The system constantly checks its own progress and adjusts. (e.g., A central heating thermostat).