int main(){
CvCapture* capture=cvCreateCameraCapture(0);
IplImage* img=NULL:
cvNamedWindow("s",CV_WINDOW_AUTOSIZE);
while(1){
img=cvQureyFrame(capture);
if(!img) break;
cvShowImage("s",img);
if(cvWaitKey(33)==27) break:
}
cvReleaseCapture(&capture);
cvDestroyWIndow("s");
retutn 0;
}
//头文件啥的你自己加上,这是个测试,看看你的摄像头好用不
debug进去看看,也许需要重新编译highgui模块