How use EmguCV in a MVC.NET project

烈酒焚心 提交于 2019-12-01 09:38:55

问题


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



来源:https://stackoverflow.com/questions/26634157/how-use-emgucv-in-a-mvc-net-project

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!