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

This commit is contained in:
Kevin Hughes
2013-04-17 13:20:32 -04:00
parent b141762070
commit eedb6fa3c4
2 changed files with 43 additions and 41 deletions

View File

@@ -197,8 +197,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"
@@ -249,7 +249,7 @@ VideoCapture constructors.
.. ocv:cfunction:: CvCapture* cvCaptureFromFile( const char* filename )
.. ocv:pyoldfunction:: cv.CaptureFromFile(filename) -> CvCapture
:param filename: name of the opened video file
:param filename: name of the opened video file (eg. video.avi) or image sequence (eg. img%02d.jpg)
:param device: id of the opened video capturing device (i.e. a camera index). If there is a single camera connected, just pass 0.
@@ -266,7 +266,7 @@ Open video file or a capturing device for video capturing
.. ocv:pyfunction:: cv2.VideoCapture.open(filename) -> retval
.. ocv:pyfunction:: cv2.VideoCapture.open(device) -> retval
:param filename: name of the opened video file
:param filename: name of the opened video file (eg. video.avi) or image sequence (eg. img%02d.jpg)
:param device: id of the opened video capturing device (i.e. a camera index).