首页 > 学院 > 开发设计 > 正文

opencv:视频播放

2019-11-10 22:47:40
字体:
来源:转载
供稿:网友
#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");}
上一篇:P1255 数楼梯

下一篇:ccf试题 数位之和

发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表