Reputation: 8320
The function cvCaptureFromAVI
allocates and initializes a CvCapture
structure in order to read a video stream from the specified file. The function cvCaptureFromCAM
works in a similar way, but the source of the video is a webcam. Once the CvCapture
structure has been allocated and initialized properly, the reading of each frame is performed using the function cvQueryFrame
.
Since I have a sequence of frames as images saved on disk, I would allocate a CvCapture
structure for reading an image stream from the specified file list. How should I initialize the CvCapture
structure?
Upvotes: 1
Views: 414
Reputation: 93468
Since you mentioned OpenCV's C API, the magic is done by cvCreateVideoWriter()
.
Here's a demo using Python.
Upvotes: 1