CvCapture* pCapture=NULL;
pCapture = cvCreateCameraCapture(-1);
if(pCapture == NULL)
{
printf("打开摄像头失败!\n");
exit(-1);
}
cvSetCaptureProperty(pCapture,CV_CAP_PROP_FRAME_WIDTH,1920);
cvSetCaptureProperty(pCapture,CV_CAP_PROP_FRAME_HEIGHT,1080);
fps= cvGetCaptureProperty(pCapture,CV_CAP_PROP_FPS);
cvReleaseCapture(&pCapture);