Rather than still images, a video deals with moving images. The sources of video can be a dedicated camera, a webcam, a video file, or a sequence of image files. In OpenCV, the
VideoWriter classes provide an easy-to-use C++ API for the task of capturing and recording involved in video processing.
The recVideo example is a short snippet of code where you can see how to use a default camera as a capture device to grab frames, process them for edge detection, and save this new converted frame to a file. Also, two windows are created to simultaneously show you the original frame and the processed one. The example code is:
#include <opencv2/opencv.hpp> #include <iostream> using namespace ...