#include "highgui.h"
int main(int argc,char** argv)
{
cvNamedWindow("Example2",CV_WINDOW_AUTOSIZE);
CvCapture* capture = cvCreateFileCapture("avi.avi");
IplImage* frame;
while(1)
{
frame = cvQueryFrame(capture);
if(!frame) break;
cvShowImage("Example2",frame);
char c = cvWaitKey(33);
if (c == 27)
{
break;
}
}
cvReleaseCapture(&capture);
cvDestroyWindow("Example2");
}
视频播放
最新推荐文章于 2024-01-15 21:15:00 发布