Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

you have to specify a camera index, like:

VideoCapture cap(0);

or :

bool ok = cap.open(0);

have a look at the docs