0

我是 C# 中 Emgu CV 的新手,当我尝试在我的 64 位笔记本电脑上设置它时,我添加了所需的 EmguCV .dll 文件作为参考,并将相关的 opencv .dll 文件添加到项目中或将 opencv .dll 文件到我的项目文件夹中的 bin/debug 文件夹,我收到以下错误(我已将目标平台更改为 x64 并下载了 x64 包):

System.TypeInitializationException was unhandled
  HResult=-2146233036
  Message=The type initializer for 'Emgu.CV.CvInvoke' threw an exception.
  Source=Emgu.CV
  TypeName=Emgu.CV.CvInvoke

  InnerException: System.DllNotFoundException
       HResult=-2146233052
       Message=Unable to load DLL 'opencv_core242': The specified module could not be found. (Exception from HRESULT: 0x8007007E)
       Source=Emgu.CV
       TypeName=""
       StackTrace:
            at Emgu.CV.CvInvoke.cvRedirectError(CvErrorCallback errorHandler, IntPtr userdata, IntPtr prevUserdata)
            at Emgu.CV.CvInvoke..cctor()
       InnerException: 

我已经坚持了几天,非常感谢任何帮助。

谢谢你。

4

1 回答 1

0

我也有同样的问题,好像找不到opencv_core242……不知道为什么。我鼓励您尝试使用 64 位 2.2 emgucv 版本的 dll。

于 2013-09-01T02:43:11.810 回答