【发布时间】:2013-10-29 22:57:53
【问题描述】:
我正在尝试让the answer to "Looking for a function for motion detection on emgucv" 中提到的Motion Detection Emgu CV example 工作。
为了让示例代码正常工作,我首先需要
- 在项目中添加对 Emgu CV DLL
Emgu.CV、Emgu.CV.UI和Emgu.Util的引用 - 确保始终将相关的 Open CV DLL(在 the EMGU wiki 中列出并在
C:\Emgu\emgucv-windows-universal-gpu 2.4.9.1847\bin\x86中找到)复制到项目的输出可执行目录 - 将构建目标更改为 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 在的执行目录:
发生了什么事?我该如何解决这个问题?
【问题讨论】: