Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version
CvCapture* camera;  // camera is a pointer already

//so change:
frame = cvQueryFrame(&camera);
//to
frame = cvQueryFrame(camera);

also:

int keyPressed = cvWaitKey(2);