我正试图让Motion Detection Emgu CV example中提及的the answer to "Looking for a function for motion detection on emgucv"正常工作。
要使示例代码正常工作,我首先需要
Emgu.CV
,Emgu.CV.UI
和Emgu.Util
的引用添加到项目中C:\Emgu\emgucv-windows-universal-gpu 2.4.9.1847\bin\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 在那里:
发生了什么事?我该如何解决这个问题?
答案 0 :(得分:0)
固定。
我认为我有版本冲突。如果我使用动画检测示例执行上述步骤,因为它与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,那么它可以正常工作。