© Eduardo A. Vlieg 2016

Eduardo A. Vlieg, Scratch by Example, 10.1007/978-1-4842-1946-1_10

10. Webcam Interaction

Eduardo A. Vlieg

(1)Curacao, Curaçao

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 ...

Get Scratch by Example: Programming for All Ages now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.