How use EmguCV in a MVC.NET project

2019-02-20 00:41发布

问题:

I use Emgu in a WinForm and works fine, now I try to make a mvc.net project using emguCV but don't work, I have the error:

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

I try to use the solutions of THE OFFICIAL WEBSITE emguCV and I can't understand how make that for web, and implement the OpenCV librairies in IIS Express .

what is the correct way to use EmguCV in a web site?

回答1:

ENGUCV works in the publish MVC project, the problem is in the development because it can't work with IIS express, but I find a way, use the local IIS of the machine.

turn on IIS if It's desactivated,

control panel / programs/activate Windows Components / IIS (exist many options to turn on)

run VS how admin

in the project properties select local IIS for debugging Properties / Web / Servers / Local IIS

and play!

for more options use the IIS console

control panel / Admin Tools / IIS