Emgu cv invoke exception c#

本文关键字:exception invoke cv Emgu | 更新日期: 2023-09-27 17:56:23

我刚刚下载了 emgucv 库并安装了它,按照 youtube 上的教程 - 将正确的 DLL 引用添加到我的项目中,但在初始化emgucv image时出现错误

Image<Bgr,Byte> img=new Image<Bgr,Byte>(@"C:'Users'pro'Desktop'Itamar'LolTools'Autologin'Resources'Logo.png");

该库中最常见的例外:The type initializer for 'Emgu.CV.CvInvoke' threw an exception

我已经在网上搜索了许多解决方案,将DLL文件复制到项目中的64x目录,添加dll并设置always copy仍然没有任何效果。我可能会为此打破我的头,所以如果有人能帮忙,我会很高兴。

Emgu cv invoke exception c#

如果您的 IDE 是 Visual Studio,请按照以下操作:

项目 ->

属性 -> 生成

然后使您的平台面向 x64