【问题标题】:Getting Emgu CV Motion Detection sample working: Unable to load DLL 'opencv_legacy249'让 Emgu CV 运动检测示例工作:无法加载 DLL 'opencv_legacy249'
【发布时间】:2013-10-29 22:57:53
【问题描述】:

我正在尝试让the answer to "Looking for a function for motion detection on emgucv" 中提到的Motion Detection Emgu CV example 工作。

为了让示例代码正常工作,我首先需要

  1. 在项目中添加对 Emgu CV DLL Emgu.CVEmgu.CV.UIEmgu.Util 的引用
  2. 确保始终将相关的 Open CV DLL(在 the EMGU wiki 中列出并在 C:\Emgu\emgucv-windows-universal-gpu 2.4.9.1847\bin\x86 中找到)复制到项目的输出可执行目录
  3. 将构建目标更改为 x86

当执行到达Form1.cs中的行时

_forgroundDetector = new BGStatModel<Bgr>(image, Emgu.CV.CvEnum.BG_STAT_TYPE.FGD_STAT_MODEL);

它抛出异常Unable to load DLL 'opencv_legacy249': The specified module could not be found. (Exception from HRESULT: 0x8007007E)。查看 DLL 的执行目录:

发生了什么事?我该如何解决这个问题?

【问题讨论】:

    标签: dll emgucv


    【解决方案1】:

    固定。

    我想我遇到了版本冲突。如果我使用 Emgu CV 安装的运动检测示例执行上述步骤,即来自 C:\Emgu\emgucv-windows-universal-gpu 2.4.9.1847\Emgu.CV.Example\MotionDetection 而不是 http://github.com/artemisvision/emgu_openCV/tree/master/Emgu.CV.Example/MotionDetection,那么它可以工作。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2014-03-28
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-09-04
      • 2016-11-10
      • 2012-07-15
      • 1970-01-01
      相关资源
      最近更新 更多