0
警告:打開文件時出錯錯誤的程序用於播放視頻OpenCV中
C:\用戶\副總裁\工作\ OCV \ OpenCV的\模塊\ highgui的\ src \ cap_ffmpeg.cpp:454
如何刪除此錯誤?
我的程序:
#include<opencv\cv.h>
#include<opencv\highgui.h>
#include<opencv\ml.h>
#include<opencv\cxcore.h>
int main(int argc, char** argv) {
cvNamedWindow("DisplayVideo", CV_WINDOW_AUTOSIZE);
CvCapture* capture = cvCreateFileCapture(" E:\softwares\opencv\samples\cpp\tutorial_code\HighGUI\video-input-psnr-ssim\video\Megamind.avi ");
IplImage* frame;
while(1) {
frame = cvQueryFrame(capture);
if(!frame) break;
cvShowImage("DisplayVideo", frame);
char c = cvWaitKey(33);
if(c == 27) break;
}
cvReleaseCapture(&capture);
cvDestroyWindow("DisplayVideo");
}