CvCapture结构和VideoCapture结构有什么区别?

enz*_*m83 7 c c++ opencv

OpenCV中的CvCapture结构和VideoCapture结构有什么区别吗?如果是这样,我应该CvCapture何时使用以及何时使用VideoCapture

Chr*_*ris 13

VideoCapture是来自新的C++接口,CvCapture不再有公共接口供使用.

使用C++ API时,VideoCapture应该使用.你应该避免混合两个接口.

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