Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

you have defined "frame" as a Mat matrix but you are not storing anything try to use

cap >> frame;

so that frame is displayed as the capturing device and as mention don't initialise the camera in the loop