read successive frames OpenCV using cvQueryframe

Posted by AtharvaI on Stack Overflow See other posts from Stack Overflow or by AtharvaI
Published on 2010-12-30T23:57:35Z Indexed on 2010/12/31 0:54 UTC
Read the original article Hit count: 177

Filed under:
|

Hi all

I have a basic question in regards to cvQueryFrame() in OpenCV.

I have the following code:

IplImage *frame1,*frame2;
frame1 = cvQueryFrame(capture);
frame2 = cvQueryFrame(capture);

Now my question is: if frame1 is a pointer to the first frame, is frame2 a pointer to the 2nd frame? So will the two cvQueryFrame() calls read successive frames?

I thought I'd check myself first but the pointers frame1,frame2 seem to have the same hex value. :s I just need to capture two frames at a time and then need to process them.

Thanks in advance

© Stack Overflow or respective owner

Related posts about image-processing

Related posts about opencv