Learn creative coding writing simple programs

121. Using a webcam in Processing

By using a webcam Processing can see our world :) You can show live video in Processing, or capture single images as a photo camera would do.

Very few lines of code are needed to show a camera live feed. Just try it! :)

Tags: webcam, video

Code editor

You can make changes to the code below. Then

Questions and comments

Try to stay close to the topic of this episode. Use the Processing forums for help with unrelated Processing projects (or hire me for help ;-)

To indicate that a word in your comment is code, use the `backtick`. Example
  Do `float` and `int` smell similar?
To highlight code blocks, use ```processing and ``` like this:
  ```processing
  void setup() {
    size(600, 600);
  }
  ```