本软件下载地址未录入,如想要软件请评论,我们会补上!opencv视频输出图片源码video2Image.cpp是一个基于opencv输出视频文件作为图片的程序。部分源码如下:
//pCapture = cvCreateFileCapture("..\\124.avi");
pCapture = cvCreateFileCapture("I:\\新建文件夹 (2)\\191672.MP4");
//pCapture = cvCaptureFromCAM(1);
while (++i)
{
img = cvQueryFrame(pCapture);
if (img == NULL)
break;
//sprintf(image_name, "..\\resultImg\\%d%s", i, ".jpg");
sprintf(image_name, "I:\\新建文件夹 (2)\\resultImg\\%d%s", i, ".jpg");
cvSaveImage(image_name, img);
cvWaitKey(33);