c++ opencv图片转视频

const int fps = 30;
const int width = 1280;
const int height = 720;
cv::VideoWriter writer("output.avi", cv::VideoWriter::fourcc('D', 'I', 'V', 'X'), fps, cv::Size(width, height));
for (auto image : images) {
    writer.write(image);
}
writer.release();

你可能感兴趣的:(c++,opencv,音视频)