We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpPrograms › Changing between different videos
Page Index Toggle Pages: 1
Changing between different videos (Read 789 times)
Changing between different videos
Nov 23rd, 2009, 1:44pm
 
For my uni project I am trying to switch between 3 webcam feeds that are plugged into my computer, using physical switches, but I'm having some trouble:

I've got the webcam working & have started using the key release programme, but I'm having trouble getting rid of the black square (representing another camera) when I initially press the key, &  the camera only takes pictures, not a live feed which I don't want!
And how would I add another two cameras?

here's my code so far:

import processing.video.*;
Capture myCapture;

void setup()
{
size(200, 200);
  myCapture = new Capture (this, width, height, 30);
  myCapture.frameRate(30);

}
int value = 0;

void draw() {
fill(value);
rect(25, 2, 50, 50);
}

void keyReleased() {
if (value == 0) {
  if(myCapture.available()) {
  myCapture.read();
}
  image(myCapture, 0, 0);
} else {
  value = 0;
}
}

any suggestions would be great!

Thanks
Re: Changing between different videos
Reply #1 - Nov 23rd, 2009, 10:13pm
 
I believe this kind of specialized question should be asked in Video Capture, Movie Playback, Vision Libraries forum. You might find people expert in the field there.
Re: Changing between different videos
Reply #2 - Nov 24th, 2009, 3:55am
 
Cool thanks
Page Index Toggle Pages: 1