Open a video file or capture device or IP video stream for video capture.
virtual bool cv::VideoCapture::open(const String &filename,
int apiPreference = CAP_ANY
)
This is an overloaded member function, provided for convenience. It differs from the above function only in the arguments it accepts.
The parameters are the same as the constructor VideoCapture(const String& filename, int apiPreference = CAP_ANY)
return
true if the file was successfully opened
The method first calls VideoCapture::release to close the open file or camera.
</