Embedding Cameras?
in
Core Library Questions
•
2 years ago
Does anyone know if there is anyway i can embed a camera in code so it takes a picture with the space bar? I also want to make it so that file appears on the screen as a large still image. I have this so far...
import processing.video.*;
Capture myCapture;
void setup()
{
size(1300 ,700);
// The name of the capture device is dependent on
// the cameras that are currently attached to your
// computer. To get a list of the
// choices, uncomment the following line
// println(Capture.list());
// To select the camera, replace "Camera Name"
// in the next line with one from Capture.list()
// myCapture = new Capture(this, width, height, "Camera Name", 30);
// This code will try to use the camera used
myCapture = new Capture(this, width, height, 30);
}
void captureEvent(Capture myCapture) {
myCapture.read();
}
void draw() {
image(myCapture, 0, 0);
}
...but i dont want the camera to be visible. Just the image taken. then the following, and the following, and the following. (also so the computer saves those images). Its alot i know, but I would truly appreciate some pointers. - thanks so much!!!
1