From ac3ec0d96d140ba71b2b5524c00bd7e38156a5f8 Mon Sep 17 00:00:00 2001 From: Kevin Hughes Date: Wed, 17 Apr 2013 13:20:32 -0400 Subject: [PATCH] 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 --- .../doc/reading_and_writing_images_and_video.rst | 4 +- samples/cpp/starter_video.cpp | 65 ++++++++++++---------- 2 files changed, 37 insertions(+), 32 deletions(-) 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] << "