开发者

exact copy of emgucv example won't work even if the example in the solution works

开发者 https://www.devze.com 2023-02-14 12:10 出处:网络
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 th

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消