I created prove-of-concept console application, which is using EmguCV for template matching. Version of openCV is 2.4.
Now I have problems with my real-life asp.net mvc application. I have a runtime error:
The type initializer for 'Emgu.CV.CvInvoke' threw an exception. System.DllNotFoundException: Unable to load DLL 'opencv_core2410': The specified module could not be found.
Saw several other question, but they are incomplete or don't have answers:
What I've already tried:
Copied folders x64 and x86 from EmguCV installation into published bin folder(these folders contains opencv dlls)
Added opencv dlls to my web project and set them to "Copy to output directory" as described here: http://www.codeproject.com/Articles/257502/Creating-Your-First-EMGU-Image-Processing-Project
Please note, it's working well in concole application, but not in mvc.