[英]What does “No suitable directory found to load unmanaged modules” mean in EMGU?
我是使用EMGU3.0(emgucv-windows-universal 3.0.0.2157),Visual Studio 2013和“任何CPU”的目标平台的EMGU / CV新手。 我正在http://www.emgu.com/wiki/index.php/Hello_World_in_CSharp#Hello_World_-_Version_2中尝试使用C#“ hello world”应用程序,如下所示:
using Emgu.CV;
using Emgu.CV.CvEnum;
using Emgu.CV.Structure;
using Emgu.CV.UI;
using System.Drawing;
...
//Create a 3 channel image of 400x200
using (Mat img = new Mat(200, 400, DepthType.Cv8U, 3))
{
img.SetTo(new Bgr(255, 0, 0).MCvScalar); // set it to Blue color
//Draw "Hello, world." on the image using the specific font
CvInvoke.PutText(
img,
"Hello, world",
new System.Drawing.Point(10, 80),
FontFace.HersheyComplex,
1.0,
new Bgr(0, 255, 0).MCvScalar);
//Show the image using ImageViewer from Emgu.CV.UI
ImageViewer.Show(img, "Test Window");
}
它建立确定。 但是当我运行它时,我得到了“'Emgu.CV.MatInvoke'的类型初始值设定项引发了异常。” 。 。 。 在线上。 。 。
using (Mat img = new Mat(200, 400, DepthType.Cv8U, 3))
另外,在输出窗口中还有另一个线索。 在例外之前,有一条关于非托管模块的消息。 。 。
No suitable directory found to load unmanaged modules A first chance exception of type 'System.TypeInitializationException' occurred in Emgu.CV.dll
知道这里发生了什么或如何调试吗?
注意:在asp.net上找不到未解决的OpenCV非托管DLL问题,涉及不同的错误消息-在不同情况下为“ System.DllNotFoundException”,(它也没有可接受的答案)。 该错误消息是由系统产生的,但是我认为我收到的错误消息是由EMGU本身产生的。 但是,如果有任何ENGU专家看到这对我的适用,我将不胜感激。
Emgu无法找到OpenCV dll。 最简单的解决方案:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.