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 & HelpVideo Capture,  Movie Playback,  Vision Libraries › Take snapshot and store frame from video capture?
Page Index Toggle Pages: 1
Take snapshot and store frame from video capture?? (Read 1323 times)
Take snapshot and store frame from video capture??
Oct 8th, 2009, 7:43am
 
Hi all,

Im currently undergoing a project using a number of webcams. First of all does anybody know how many live feeds i can get from one computer? 2 or 3?

I then need to capture and store a frame from the live feed.

I have already implemented the pause library, and a low frame rate technique to capture stills, but i would like to store them.

Thanks, BJCB
Re: Take snapshot and store frame from video capture??
Reply #1 - Oct 8th, 2009, 4:03pm
 
 long now = millis();
   if ((now - lastCaptureTime) >= period){
     String filename = "timelapse_" + nf(saveCount, 6) + ".jpg";
     saveFrame(filename);
     lastCaptureTime = now;
     saveCount++;
     myCapture.updatePixels(); // Save my modifications

This might help you just replace the myCapture with what ever your video is called.
Re: Take snapshot and store frame from video capture??
Reply #2 - Oct 9th, 2009, 8:02am
 
Thanks for your help, i will try that tonight.

I have used the PDF library to record a snapshot of a video feed in the display window. As there isnt a JPG library, does anybody know how to store the exported images as JPG's instead of PDF's?

I will post the code tomorrow if anyone needs to see it,

(does anybody have comments on multiple video feeds?)

BJCB.
Page Index Toggle Pages: 1