在 open cv 中从图像序列创建视频 [英] create a video from image sequence in open cv

查看:72
本文介绍了在 open cv 中从图像序列创建视频的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用 c++ 处理 open cv.我有大约 30 帧图像.我需要组合这些帧来获取视频.有人可以建议我方法吗?是否像读取每一帧并存储在视频作家中?请建议

I am working on open cv with c++.I have around 30 frames of images .I need to combine these frames to obtain a video.Can anyone suggest me method?Is it like reading each frames and storing in videowriter?Please suggest

推荐答案

我建议使用 ffmpeg.您可以通过编程方式或使用命令行来完成.在命令行上执行此操作的示例是:

I would suggest using ffmpeg. You can do it programmatically or using the command line. An example of doing this on the command line is:

ffmpeg -start_number n -i image%d.jpg -vcodec mpeg4 test.avi

其中 n 是第一个图像编号.

Where n is the first image number.

这篇关于在 open cv 中从图像序列创建视频的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆