OpenCV中的负载捕获 [英] Load Captures in OpenCV

查看:77
本文介绍了OpenCV中的负载捕获的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们可以在OpenCV中使用哪种视频格式?除了AVI和从相机加载外,还能使用其他任何功能吗? 如果这些是唯一受支持的格式,则要求视频转换器使用其他视频格式.

Which video formats can we use in OpenCV? Can anything in addition to AVI and load from camera be used? If these are the only supported formats, is a video converter required to use other video formats.

推荐答案

我不确定它是最新的,但是

I'm not sure how up-to-date it is, but this OpenCV wiki page gives a good overview of what codecs are supported. If looks like AVI is the only format with decent cross-platform support. Your options are either to do the conversion using an external converter (like you suggest) or write code that uses a video library to load the image and create the appropriate cv::Mat or IplImage * header for the data.

除非您要处理大量视频,否则我建议采用阻力最小的方法,然后将视频转换为AVI(有关OpenCV支持的详细信息,请参见上面的链接).请小心避免有损压缩:它将破坏大量图像处理算法.

Unless you're processing huge quantities of video I suggest taking the path of least resistance and just converting the videos to AVI (see the above link for the details of what OpenCV supports). Just be careful to avoid lossy compression: it will wreck havoc with a lot of image processing algoritms.

这篇关于OpenCV中的负载捕获的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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