CvCapture结构和VideoCapture结构之间有什么区别? [英] What is the difference between the CvCapture structure and the VideoCapture structure?

查看:355
本文介绍了CvCapture结构和VideoCapture结构之间有什么区别?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

OpenCV中的CvCapture结构和VideoCapture结构之间是否有区别?如果是这样,什么时候应该使用CvCapture,什么时候应该使用VideoCapture?

Is there any difference between the CvCapture structure and the VideoCapture structure in OpenCV? If so, when should I use CvCapture and when to use VideoCapture?

推荐答案

VideoCapture来自新​​的C ++接口,CvCapture不再具有要使用的公共接口.

VideoCapture is from the new C++ interface, CvCapture no longer has a public interface for use.

使用C ++ API时,应使用VideoCapture.您应该避免将这两个界面混在一起.

When using the C++ API, VideoCapture should be used. You should avoid mixing the two interfaces.

如果使用的是C API,而不是C ++ API,则有几种方法返回CvCapture指针,例如cvCaptureFromFile.

If you are using the C API, rather than the C++ API, several methods return a CvCapture pointer, such as cvCaptureFromFile.

这篇关于CvCapture结构和VideoCapture结构之间有什么区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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