1. 首页
  2. 编程语言
  3. C++ 
  4. openCV 之 读取视频

openCV 之 读取视频

上传者: 2020-05-26 01:36:37上传 TXT文件 429B 热度 15次
#include"stdafx.h" #include"highgui.h" intmain(intargc,char*argv[]) { cvNamedWindow("avi"); CvCapture*capture=cvCreateFileCapture("D:\\sample.avi"); IplImage*frame; while(1) { frame=cvQueryFrame(capture); if(!frame)break; cvShowImage("avi",frame); charc=cvWaitKey(33);
下载地址
用户评论