[C#]Emgu.CV for Visual Studio 2013 [closed]

asked 2014-10-27 04:15:45 -0600

sigou gravatar image

updated 2018-09-03 14:04:55 -0600

Hello,

is Emgu.CV working fine with Visual Studio 2013? I have tried 2 versions : emgucv-windows-x64-gpu 2.4.2.1777, and emgucv-windows-universal-cuda 2.9.0.1922) After a full day trying to use Emvu(many different forums, with different information/syntaxes), when I launch the project, I still have an exception on the following line :

CascadeClassifier _face = new CascadeClassifier("haarcascade_frontalface_default.XML");

Message is in french, but I could translate more or less :

A'System.TypeInitializationException' type exception occured in Emgu.CV.dll but was not generated in user code

Additional information : The type initializer for 'Emgu.CV.CvInvoke' threw an exception.

Thanks in advance for your help.

P.S : Additional problem met, but less important, when I use Emvu.CV .dll, it is looking for "haarcascade_frontalface_default.XML" file in "C:\Program Files (x86)\IIS Express" folder, even if .XML is in the same folder as the .dll, I don't understand why it goes in IIS directory? To solve the problem I copied .xml file into that directory, then I have the exception mentioned below.

edit retag flag offensive reopen merge delete

Closed for the following reason question is off-topic or not relevant by StevenPuttemans
close date 2014-10-28 06:00:16.258188

Comments

please understand, that folks here can help you with opencv related problems, but not so much with those, that are closely related to any unpofficial 3rd party wrappers

berak gravatar imageberak ( 2014-10-27 05:58:38 -0600 )edit
1

ok, I just wanted to know if Opencv could work with that VS version, cause in bin folder , I could see only Emgu.CV.DebuggerVisualizers.VS2010.dll, and Emgu.CV.DebuggerVisualizers.VS2012.dll. I understand that 2nd question is not about opencv. thanks

sigou gravatar imagesigou ( 2014-10-27 06:11:49 -0600 )edit

still, try an absolute path for the cascade. the folder with the dll is probably not the one, where the program starts.

berak gravatar imageberak ( 2014-10-27 07:05:27 -0600 )edit

I suggest to go here: http://www.emgu.com/forum/viewforum.php?f=1 ! It is designed explicitly for your problems. Lets close this since it is unrelated!

StevenPuttemans gravatar imageStevenPuttemans ( 2014-10-28 05:53:21 -0600 )edit