In This Chapter
Setting up a webcam or Raspberry Pi camera module
Looking at images
Creating image files
Using a webcam to detect motion
Looking at image recognition
Making a Connect Four game using computer vision
In this chapter, we show you how to give your Raspberry Pi vision using a webcam or the Pi Camera Module. Using image-processing techniques, you can use the Raspberry Pi to analyze images to identify things like motion, colors, and shapes. Here, we show you how computer images are created and how you can look into the images for information about them.
Note: Throughout this chapter, we provide instructions and code for both a webcam and the Raspberry Pi Camera module. We use the term camera to refer to either your ...