In Scratch, you can control a webcam with a script and make it interact with the objects in a project. Using the blocks of code in the Sensing category, for example, you can use a webcam to control a sprite. In this chapter, you will learn how to use these blocks of code. You’ll first learn about each block, and then you will apply what you have learned in some examples. To create the examples, you need to have a webcam connected to your computer.
Webcam Blocks
The blocks of code that interact with the webcam are found in the Sensing blocks category (see Figure 10-1) in the block palette. One additional ...