【发布时间】:2014-06-17 12:09:32
【问题描述】:
我使用 wxWidgets 和 OpenCV 2.4.8 开发了一个应用程序。我只是使用 VideoCapture 从磁盘加载 avi 文件。该应用程序在其开发的机器上运行良好。但是当在另一台机器上运行时,cap.open(fileName) 返回 false,如下面的代码 sn-p 所示。有谁知道这里可能是什么问题?
bool Data::loadVideoFile(const char *fileName)
{
VideoCapture cap;
if ( !cap.open(fileName) ) // if not success, return false
{
return false;
}
else
{
return true;
}
}
【问题讨论】:
-
我忘了说该应用程序是在 MS Visual Studio 2010 中开发的。