How does opencv3/C++ convert pictures into videos
This article mainly introduces opencv3/C++ how to convert pictures into video related knowledge, the content is detailed and easy to understand, simple and fast operation, has a certain reference value, I believe that after reading this opencv3/C++ how to convert pictures into video articles will have a harvest, let's take a look.
Some existing images are placed in a folder jogging1\ in order, as shown in the figure:
It needs to be merged and converted into one video.
Example:
Environment: Win7+OpenCV3+VS2012
# include#include # include#include # include#include using namespace std;using namespace cv;int main () {_ finddata_t FileInfo; / / the path where the picture is read string inPath = "E:\\ image\\ yu\\ jogging1\"; string strfind = inPath + "*"; long Handle = _ findfirst (strfind.c_str (), & FileInfo); char filename [300]; Mat src; if (Handle =-1L) {cerr