【发布时间】:2015-05-17 12:20:06
【问题描述】:
我无法使用 Emgu CV 播放视频
显示错误
无法从 184.avi 创建捕获
代码如下:
public partial class Form1 : Form
{
//Set the name of pop-up window
String winname = "First Window";
Timer My_Time = new Timer();
int FPS=30;
Capture _capture;
public Form1()
{
InitializeComponent();
//Frame Rate
My_Timer.Interval = 1000 / FPS;
My_Timer.Tick += new EventHandler(My_Timer_Tick);
My_Timer.Start();
_capture = new Capture("184.avi"); // Error this line
}
private void My_Timer_Tick(object sender, EventArgs e)
{
imageBox.Image = _capture.QueryFrame().ToBitmap();
}
我使用 Windows 8 x64 并安装 emgucv-windows-universal-cuda 2.4.10.1940 它在 bin 中没有 opencv_ffmpeg.dll。所以我安装了 opencv-2.4.11 并从 OpenCV bin 中复制所有 dll 以粘贴到我的项目中的 Debug 中。我也将 184.avi 粘贴到 Debug 中。但是当我运行它时会显示这样的错误。如何使用 Emgu CV 播放视频?
【问题讨论】:
-
希望这会有所帮助。 codeproject.com/Articles/722569/…