Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the difference between the CvCapture structure and the VideoCapture structure?

Tags:

c++

c

opencv

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?

like image 352
enzom83 Avatar asked Nov 30 '12 23:11

enzom83


1 Answers

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

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

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

like image 106
Chris Avatar answered Nov 04 '22 16:11

Chris