0
在尝试读取opencv中的.yuv视频文件时遇到特定问题。我的代码如下:在opencv中读取YUV文件
#include <opencv2/core/core.hpp>
#include <opencv2/highgui/highgui.hpp>
#include <opencv2/opencv.hpp>
using namespace cv;
using namespace std;
int main(void)
{
VideoCapture cap("video/balloons1.yuv"); // open the video file for reading
if (!cap.isOpened()) // if not success, exit program
{
cout << "Cannot open the video file" << endl;
return -1;
}
return 0;
}
我已经安装了FFmpeg的下面从这个网站上的说明:http://www.wikihow.com/Install-FFmpeg-on-Windows,安装似乎是正确的。有没有人有任何想法可能是什么问题?
感谢您清理这个!我会尽量找到解决办法 – user1816546