CameraFeed
This commit is contained in:
parent
1837834c83
commit
efa66c4a71
|
|
@ -0,0 +1,23 @@
|
|||
import processing.video.*;
|
||||
|
||||
Capture cam;
|
||||
int x;
|
||||
void setup() {
|
||||
size(750, 480);
|
||||
cam = new Capture(this, width, height);
|
||||
cam.start();
|
||||
loop();
|
||||
x=0;
|
||||
}
|
||||
|
||||
void draw() {
|
||||
if(cam.available()) {
|
||||
cam.read();
|
||||
}
|
||||
image(cam, 0, 0);
|
||||
if(x<20 && x>1){
|
||||
saveFrame("frame_#####.jpg");
|
||||
x++;
|
||||
}
|
||||
delay(1/5);
|
||||
}
|
||||
Binary file not shown.
Loading…
Reference in New Issue