Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <cv.h>
- #include <highgui.h>
- #include <iostream>
- #include <vector>
- using namespace std;
- using namespace cv;
- int main()
- {
- VideoCapture capture("/home/P1030.MOV");
- int totalFrameNumber = capture.get(CV_CAP_PROP_FRAME_COUNT);
- vector<Mat> frame;
- namedWindow("Display", WINDOW_AUTOSIZE);
- for(int i=0; i < totalFrameNumber; i++)
- {
- frame.push_back(Mat());
- imshow("Display", frame);
- }
- return 0;
- }
- int main()
- {
- VideoCapture capture("/home/P1030.MOV");
- int totalFrameNumber = capture.get(CV_CAP_PROP_FRAME_COUNT);
- Mat currentFrame;
- vector<Mat> frames;
- namedWindow("Display", WINDOW_AUTOSIZE);
- for(int i=0; i < totalFrameNumber; i++)
- {
- capture>>currentFrame;
- frames.push_back(currentFrame.clone());
- imshow("Display", currentFrame);
- waitKey(10);
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement