I am interested in using Emgucv for face detection. I have installed emgucv and tested the camera capturing example . It works fine .. so i copied the solution out of the emgu folder , reintroduced the refereces emgu.cv.dll , emgu.cv.ui.dll , emgu.util.dll and i doesn't work . i get the following error :
The typ开发者_如何学Ce initializer for 'Emgu.CV.CvInvoke' threw an exception.
Does anyone know why this happens ?
It is because: 1 - It has references (with relative path) to Emgu dlls (say in C:\Emgu\emgucv-windows-x86 2.2.1.1150\bin). 2 - Output path for compilation is set to C:\Emgu\emgucv-windows-x86 2.2.1.1150\bin too.
So if you reference necessary dlls and put the compiled exe in C:\Emgu\emgucv-windows-x86 2.2.1.1150\bin or a copy of it, it will work.
精彩评论