J
JoshuaAT123
Guest
Hello. I am trying to run a video I have on my computer using opencv C++ code, but its not working.
The code I have is:
// test.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include <iostream>
#include <opencv2/opencv.hpp>
#include <opencv2/highgui/highgui.hpp>
#include "opencv2/imgproc/imgproc.hpp"
using namespace cv;
using namespace std;
int main()
{
VideoCapture cap("C:/Users/JoshuaT/Videos/Dell WebCam Central/me.wmv", CAP_MODE_BGR);
waitKey(0);
cap.release();
return 0;
}
The error I'm getting is as follows:
[ INFO:0] VIDEOIO: Enabled backends(6, sorted by priority): FFMPEG(1000); MSMF(990); DSHOW(980); VFW(970); CV_IMAGES(960); CV_MJPEG(950)
Thank you for the help
Continue reading...
The code I have is:
// test.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include <iostream>
#include <opencv2/opencv.hpp>
#include <opencv2/highgui/highgui.hpp>
#include "opencv2/imgproc/imgproc.hpp"
using namespace cv;
using namespace std;
int main()
{
VideoCapture cap("C:/Users/JoshuaT/Videos/Dell WebCam Central/me.wmv", CAP_MODE_BGR);
waitKey(0);
cap.release();
return 0;
}
The error I'm getting is as follows:
[ INFO:0] VIDEOIO: Enabled backends(6, sorted by priority): FFMPEG(1000); MSMF(990); DSHOW(980); VFW(970); CV_IMAGES(960); CV_MJPEG(950)
Thank you for the help
Continue reading...