CvCapture结构和VideoCapture结构之间有什么区别? [英] What is the difference between the CvCapture structure and the VideoCapture structure?
问题描述
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屋!