小编Art*_*hur的帖子

未找到asp.net的OpenCV非托管DLL

我们正在构建一个Web应用程序(C#.NET),它使用Emgu opencv包装器形式的非托管库.我们正在强制构建为32位(x86),我们正在使用32位版本的Emgu.

所有这些在本地构建上都很好用,但是当发布到我们的web服务器时,openCV Dll(s)无法加载:

System.DllNotFoundException
Unable to load DLL 'opencv_core240': The specified module could not be found. (Exception from HRESULT: 0x8007007E)

System.TypeInitializationException: The type initializer for 'Emgu.CV.CvInvoke' threw an exception. ---> System.DllNotFoundException: Unable to load DLL 'opencv_core240': The specified module could not be found. (Exception from HRESULT: 0x8007007E)
   at Emgu.CV.CvInvoke.cvRedirectError(CvErrorCallback errorHandler, IntPtr userdata, IntPtr prevUserdata)
   at Emgu.CV.CvInvoke..cctor()
   --- End of inner exception stack trace ---
   at Emgu.CV.CvInvoke.cvCreateImageHeader(Size size, IPL_DEPTH depth, Int32 channels)
   at Emgu.CV.Image`2.AllocateData(Int32 rows, Int32 cols, Int32 numberOfChannels)
   at …
Run Code Online (Sandbox Code Playgroud)

c# asp.net opencv unmanaged emgucv

5
推荐指数
1
解决办法
8871
查看次数

标签 统计

asp.net ×1

c# ×1

emgucv ×1

opencv ×1

unmanaged ×1