emgucv - Getting Emgu CV Motion Detection sample working: Unable to load DLL 'opencv_legacy249' -
i'm trying motion detection emgu cv example mentioned in the answer "looking function motion detection on emgucv" working.
to example code working first needed
- add references emgu cv dlls
emgu.cv
,emgu.cv.ui
, ,emgu.util
project - make sure relevant open cv dlls (listed on the emgu wiki , found in
c:\emgu\emgucv-windows-universal-gpu 2.4.9.1847\bin\x86
) copied output executable directory of project - change build target x86
when execution gets line in form1.cs
_forgrounddetector = new bgstatmodel<bgr>(image, emgu.cv.cvenum.bg_stat_type.fgd_stat_model);
it throws exception unable load dll 'opencv_legacy249': specified module not found. (exception hresult: 0x8007007e)
. looking @ execution directory dll is there:
what's going on? how fix this?
fixed.
i think had version clash. if take above steps motion detection example installs emgu cv, i.e. c:\emgu\emgucv-windows-universal-gpu 2.4.9.1847\emgu.cv.example\motiondetection
instead of http://github.com/artemisvision/emgu_opencv/tree/master/emgu.cv.example/motiondetection works.
Comments
Post a Comment