Quantcast
Channel: Library Questions - Processing 2.x and 3.x Forum
Viewing all articles
Browse latest Browse all 2896

How to make the webcam capture window go away or put images over it

$
0
0

I'm using a webcam for the beginning of my project, but after a while I want to clear the screen and start a whole new page. I can probably do this by covering up the screen with a big white rectangle, however, nothing will cover up the webcam window. The camera part of my code looks like this:

String[] cameras = Capture.list(); cam = new Capture(this, cameras[000]); cam.start();

and then

void draw() { if (cam.available() == true) { cam.read(); }

Since it says if(cam.available() == true), I tried to set cam.available to false, but even that wouldn't work, giving the error, "the field capture.available is not visible." I'm very desperate.

As an alternative, does anyone know a way to make different pages, so when you click a button, it takes everything you've already done away completely? I've looked into it a lot, and found people saying setting the background(255) at the beggining of draw, or doing multiple draws, but I couldn't get it to work. I also tried the redraw() and clear() functions without any success.

PLEASE help


Viewing all articles
Browse latest Browse all 2896

Trending Articles