我是 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:
我已经坚持了几天,非常感谢任何帮助。
谢谢你。