Led by David Stein as a substitute for Dan Shiffman’s ICM class

[email protected]

Images


Capturing Video

let video;

function setup() {
	video=createCapture(VIDEO);
	video.hide();
}

function draw() {
  background(220);
	image(video,0,0,width,height);
}

It is possible to change the resolution when we capture the video. (Note I did not emphasize this in class)

function setup() {
  createCanvas(400, 400);
  video=createCapture(VIDEO);
	video.size(100,100);
  video.hide();
}

Capturing Video and showing a couple of copies of the Video:

Screen Shot 2023-10-25 at 3.54.36 PM.png

Example of Capturing a Video Stream and putting it inside a TV

https://editor.p5js.org/des8963/sketches/6G2vshVdD