read successive frames OpenCV using cvQueryframe
- by AtharvaI
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