#include <highgui.h>
int main(int argc,char*argv[])
{
cvNamedWindow("test");
CvCapture* capture=cvCreateCameraCapture(0);
IplImage* frame;
while(1)
{
frame = cvQueryFrame(capture);
if(!frame)break;
cvShowImage("test",frame);
char c=cvWaitKey(3);
if(c==27)break;
}
}
int main(int argc,char*argv[])
{
cvNamedWindow("test");
CvCapture* capture=cvCreateCameraCapture(0);
IplImage* frame;
while(1)
{
frame = cvQueryFrame(capture);
if(!frame)break;
cvShowImage("test",frame);
char c=cvWaitKey(3);
if(c==27)break;
}
}