Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version
VideoCapture cap(0);
// some code here
cap.open(0);

You can use the open method to restart webcam capture.

VideoCapture cap(0);
// some code here
cap.open(0);