Project0--Simple Capture--

07/11/2012 14:56

I started up with simple codes on "OpenCV2 プログラミングブック", named "simple_capture."

This program captures seen and make a video file of what was captured.

My questions:

1. what's cv::VideoWriter?

Explanations on OpenCV.jp page : https://opencv.jp/opencv-2svn/cpp/reading_and_writing_images_and_video.html

So, it seems exposing the captured stream to file.

2. what's these "<<, >>"?

Ok, it's substitution.

"capture >> fram" is substituting captured image, which is the class of "cv::VideoCapture", to the prepared frame, the class of "cv::Mat".

And, "writer << frame" is substituting the frame to writer.

One question rises up: Why doesn't substitute capture to writer directly? Is it higly costing?

3. imshow

Saw "https://opencv.jp/opencv-2svn/cpp/user_interface.ht"

win_src means the window name, and it was defined as src.

Class "std::string" is class of c++, it means sequence of characters : "https://www.cplusplus.com/reference/string/string/"

So, the window name must be src.