VideoCapture is the new C ++ interface; CvCapture no longer has an open interface to use.
When using the C ++ API, VideoCapture should be used. Do not mix the two interfaces.
If you use the C API, not the C ++ API, several methods return a CvCapture pointer, such as cvCaptureFromFile .
source share