openCV之读取视频 #include"stdafx.h" #include"highgui.h" intmain(intargc,char*argv[]) { cvNamedWindow("avi"); CvCapture*capture=cvCreateFileCapture("D:\\sample.avi