Get the App
SLTechnology News&Howtos  ›  Development  › 

How does opencv3/C++ convert pictures into videos

Shulou Source: shulou.com Published: 2022-05-31 21:54:09 10月04日 Update

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

Tags: Pictures videos knowledge content location articles paths values subitems subdirectories easy to operate files folders articles easy to understand more environment look examples industry Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Linux Microsoft vpn macOS NVidia