//#include <stdafx.h>
#include <cv.h>
#include <cxcore.h>
#include <highgui.h>
#include <Windows.h>
int main( int argc, char** argv )
{
//声明IplImage指针
IplImage* pFrame = NULL;
//获取摄像头
CvCapture* pCapture = cvCreateCameraCapture(0);
//创建窗口
cvNamedWindow("video", 1);
Sleep(2000);
//显示视屏
while(1)
{