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
Processing frames captured in OpenCV (Read 617 times)
Processing frames captured in OpenCV
Sep 12th, 2009, 1:57am
 
Hello all,

I'm using OpenCV (C++) to try and process video frames.
I'm using these funcions:

int               cvGrabFrame(IplImage*)
IplImage*    cvRetrieveFrame(IplImage*)

I get a huge warning not to process the returned frame, and when trying to do so I get a bug seen only in disassembly.

I need to find a way to extract those frames into (e.g.) a matrix and reconvert them into IplImage* (which frames are).
The problem is that I can't store the frames since when grabing the next frame all previous frames are gone (even if you clone them first).

In conclusion:
I need a way to store a faw (different) frames, be able to process them and to reconvert them to IplImage* so I can present them.

Thanks a lot for your help.
Page Index Toggle Pages: 1