Skip to content

Instantly share code, notes, and snippets.

@forkbomb
Created April 11, 2014 17:17
VideoCapture cap(0); // 0 for notebook camera, 1 for external camera
if(!cap.isOpened())
{
cout << "Camera error";
return -1;
}
cap.open(0);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment