How to use EmguCV (OpenCV in C #)?

I do not understand what I need to install in order to make EmguCV work. I opened the sample-src provided by EmguCV, but I am getting errors in Visual Studio 2008.

I also tried using other .NET wrappers for OpenCV, but none of them worked (including examples). The message "(sample program) has detected a problem and should close. Please report this error to microsoft bla bla bla", after I launched any program that uses OpenCV.

How to make this work in C #?

+1
c # opencv
source share
3 answers

Are all the necessary DLL files? Try copying all Emgu.dll files to the directory containing the .exe file.

To automate this, I added a post-build event in Visual Studio:

xcopy /Y /D /F $(ProjectDir)Emgu.CV.Binary-2.0.1.0\*.dll $(TargetDir) 

You need to install the correct source directory (I would like to keep my libraries along with the sources).

+5
source share

I had problems with examples when I used Visual Studio 2010, and this is what I did:

  • Remote links: Emgu.CV.dll Emgu.UI.dll Emgu.Util.dll
  • In the menu "Project" → "Settings" → and the goal .Net Framework has changed to 3.5
  • I added the downloaded DLL files (the ones with which I deleted earlier)
0
source share
0
source share

All Articles