Video in and out 3 - turn on and off the video or capture device

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.

</

Guess you like

Origin blog.csdn.net/u013480226/article/details/123630387