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 › Capture camera frame to array without showing?
Page Index Toggle Pages: 1
Capture camera frame to array without showing??? (Read 910 times)
Capture camera frame to array without showing???
Aug 8th, 2009, 11:18am
 
Can anyone point me in a general direction.

I'm wanting to capture single frames from a web camera to an array of PImages, say when I click.

I can do this with the copy or get functions etc. but this is no good for me for various reasons, I need to get the captured frame before it is seen on screen.

Is there a way to say to Processing 'Grab this frame now (from the Capture function) and put it in one index of an array so I can display these later as a sequential image()?... ie storing individual frames from a camera without showing them or printing them to the screen?

New to Processing (or any form of programming) and tearing my hair out with this.  Undecided

Any pointers greatly, no massively appreciated.

j
Re: Capture camera frame to array without showing???
Reply #1 - Aug 8th, 2009, 3:21pm
 
Maybe you shall have a look at
http://processing.org/discourse/yabb2/board_Video_3Baction_display_3Bnum_1159143757.html
which features a way to buffer images (it actually wraps it into a cutom VideoBuffer class but if you don't want that, it shall be a pretty simple change)
Re: Capture camera frame to array without showing???
Reply #2 - Aug 11th, 2009, 11:36am
 
Thanks tanepierre,
Ill give it a look and see if an adaptation works.
P
Page Index Toggle Pages: 1