CrashCourse · @crashcourse
Computer Vision: Crash Course Computer Science #35
Uploaded June 8, 2018 · Length 11:10
Summary
This video explains computer vision, how computers see images using pixels, and introduces algorithms like color tracking, edge detection with kernels, and convolutional neural networks.
- computer vision basics
- image pixels explained
- color tracking algorithm
- edge detection kernels
- convolutional neural networks
- image processing techniques
Transcript preview
The first 2 minutes of the transcript. Select a timestamp to watch that moment on YouTube.
- 0:03
Hi, I’m Carrie Anne, and welcome to Crash Course Computer Science!
- 0:05
Today, let’s start by thinking about how important vision can be.
- 0:09
Most people rely on it to prepare food, walk around obstacles, read street signs, watch
- 0:13
videos like this, and do hundreds of other tasks.
- 0:16
Vision is the highest bandwidth sense, and it provides a firehose of information about
- 0:20
the state of the world and how to act on it.
- 0:22
For this reason, computer scientists have been trying to give computers vision for half
- 0:26
a century, birthing the sub-field of computer vision.
- 0:29
Its goal is to give computers the ability to extract high-level understanding from digital
- 0:33
images and videos.
- 0:35
As everyone with a digital camera or smartphone knows, computers are already really good at
- 0:39
capturing photos with incredible fidelity and detail – much better than humans in fact.
- 0:43
But as computer vision professor Fei-Fei Li recently said, “Just like to hear is the
- 0:48
not the same as to listen.
- 0:49
To take pictures is not the same as to see.”
- 0:52
INTRO
- 1:01
As a refresher, images on computers are most often stored as big grids of pixels.
- 1:05
Each pixel is defined by a color, stored as a combination of three additive primary colors:
- 1:10
red, green and blue.
- 1:11
By combining different intensities of these three colors, what’s called a RGB value,
- 1:14
we can represent any color.
- 1:17
Perhaps the simplest computer vision algorithm – and a good place to start – is to track
- 1:21
a colored object, like a bright pink ball.
- 1:23
The first thing we need to do is record the ball’s color.
- 1:26
For that, we’ll take the RGB value of the centermost pixel.
- 1:30
With that value saved, we can give a computer program an image, and ask it to find the pixel
- 1:34
with the closest color match.
- 1:35
An algorithm like this might start in the upper right corner, and check each pixel,
- 1:39
one at time, calculating the difference from our target color.
- 1:43
Now, having looked at every pixel, the best match is very likely a pixel from our ball.
- 1:47
We’re not limited to running this algorithm on a single photo; we can do it for every
- 1:51
frame in a video, allowing us to track the ball over time.
- 1:54
Of course, due to variations in lighting, shadows, and other effects, the ball on the
- 1:58
field is almost certainly not going to be the exact same RGB value as our target color,


