From: Kevin Hughes Date: Wed, 17 Apr 2013 17:20:32 +0000 (-0400) Subject: squashed #823 X-Git-Tag: accepted/tizen/6.0/unified/20201030.111113~1314^2~221^2~10 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ac3ec0d96d140ba71b2b5524c00bd7e38156a5f8;p=platform%2Fupstream%2Fopencv.git squashed #823 removed separate example for reading image sequences and modified starter_video.cpp to better explain the functionality of VideoCapture. I also added a bit more explanation in the documentation of the VideoCapture interface Conflicts: modules/highgui/doc/reading_and_writing_images_and_video.rst samples/cpp/starter_video.cpp starter_video.cpp changed CV WINDOW KEEPRATIO to just WINDOW KEEPTATIO to fix build error starter_video.cpp hid local functions --- diff --git a/modules/highgui/doc/reading_and_writing_images_and_video.rst b/modules/highgui/doc/reading_and_writing_images_and_video.rst index 316012a..a17ad90 100644 --- a/modules/highgui/doc/reading_and_writing_images_and_video.rst +++ b/modules/highgui/doc/reading_and_writing_images_and_video.rst @@ -193,8 +193,8 @@ VideoCapture ------------ .. ocv:class:: VideoCapture -Class for video capturing from video files or cameras. -The class provides C++ API for capturing video from cameras or for reading video files. Here is how the class can be used: :: +Class for video capturing from video files, image sequences or cameras. +The class provides C++ API for capturing video from cameras or for reading video files and image sequences. Here is how the class can be used: :: #include "opencv2/opencv.hpp" diff --git a/samples/cpp/starter_video.cpp b/samples/cpp/starter_video.cpp index b8f4086..7f9dafd 100644 --- a/samples/cpp/starter_video.cpp +++ b/samples/cpp/starter_video.cpp @@ -4,31 +4,34 @@ * Created on: Nov 23, 2010 * Author: Ethan Rublee * -* A starter sample for using opencv, get a video stream and display the images +* Modified on: April 17, 2013 +* Author: Kevin Hughes +* +* A starter sample for using OpenCV VideoCapture with capture devices, video files or image sequences * easy as CV_PI right? */ -#include "opencv2/highgui/highgui.hpp" + +#include + #include -#include #include using namespace cv; using namespace std; - - //hide the local functions in an anon namespace namespace { void help(char** av) { - cout << "\nThis program justs gets you started reading images from video\n" - "Usage:\n./" << av[0] << "