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.
Page Index Toggle Pages: 1
Capturing individual frames (Read 542 times)
Capturing individual frames
Jul 21st, 2006, 5:30pm
 
Hi there,

Does anyone happen to know if there is a way of capturing individual frames from a webcam? I simply want to capture e.g. 10 frames and display each one as a separate image.

So far all of the experimentation I've done with video has been simply playing a live feed e.g. 'image(capture,-50,-50,100,100);'

cheers,
Matt
Re: Capturing individual frames
Reply #1 - Aug 6th, 2006, 9:33am
 
why not for every frame when you tell the camera to getFrame, you save the frame to an image?  you can make an PImage object with the same size as the video, and just do copy(video, image) and the pixel array from that video frame will copy to the image.  better yet, make an PImage array and just copy to the coorisponding PImage in the array.
Page Index Toggle Pages: 1