CrashCourse · @crashcourse

Computer Vision: Crash Course Computer Science #35

Uploaded June 8, 2018 · Length 11:10

Computer Vision: Crash Course Computer Science #35

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.

  1. 0:03

    Hi, I’m Carrie Anne, and welcome to Crash Course Computer Science!

  2. 0:05

    Today, let’s start by thinking about how important vision can be.

  3. 0:09

    Most people rely on it to prepare food, walk around obstacles, read street signs, watch

  4. 0:13

    videos like this, and do hundreds of other tasks.

  5. 0:16

    Vision is the highest bandwidth sense, and it provides a firehose of information about

  6. 0:20

    the state of the world and how to act on it.

  7. 0:22

    For this reason, computer scientists have been trying to give computers vision for half

  8. 0:26

    a century, birthing the sub-field of computer vision.

  9. 0:29

    Its goal is to give computers the ability to extract high-level understanding from digital

  10. 0:33

    images and videos.

  11. 0:35

    As everyone with a digital camera or smartphone knows, computers are already really good at

  12. 0:39

    capturing photos with incredible fidelity and detail – much better than humans in fact.

  13. 0:43

    But as computer vision professor Fei-Fei Li recently said, “Just like to hear is the

  14. 0:48

    not the same as to listen.

  15. 0:49

    To take pictures is not the same as to see.”

  16. 0:52

    INTRO

  17. 1:01

    As a refresher, images on computers are most often stored as big grids of pixels.

  18. 1:05

    Each pixel is defined by a color, stored as a combination of three additive primary colors:

  19. 1:10

    red, green and blue.

  20. 1:11

    By combining different intensities of these three colors, what’s called a RGB value,

  21. 1:14

    we can represent any color.

  22. 1:17

    Perhaps the simplest computer vision algorithm – and a good place to start – is to track

  23. 1:21

    a colored object, like a bright pink ball.

  24. 1:23

    The first thing we need to do is record the ball’s color.

  25. 1:26

    For that, we’ll take the RGB value of the centermost pixel.

  26. 1:30

    With that value saved, we can give a computer program an image, and ask it to find the pixel

  27. 1:34

    with the closest color match.

  28. 1:35

    An algorithm like this might start in the upper right corner, and check each pixel,

  29. 1:39

    one at time, calculating the difference from our target color.

  30. 1:43

    Now, having looked at every pixel, the best match is very likely a pixel from our ball.

  31. 1:47

    We’re not limited to running this algorithm on a single photo; we can do it for every

  32. 1:51

    frame in a video, allowing us to track the ball over time.

  33. 1:54

    Of course, due to variations in lighting, shadows, and other effects, the ball on the

  34. 1:58

    field is almost certainly not going to be the exact same RGB value as our target color,