"Emgu.CV.CvInvoke"引发了异常. [英] 'Emgu.CV.CvInvoke' threw an exception.

查看:112
本文介绍了"Emgu.CV.CvInvoke"引发了异常.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建了imageHolder类:

 公共  class  ImageHolder:Image< Bgr,Byte>
   {
       私有 字符串 imagePath;

       公共 ImageHolder(字符串路径):基本 (小路)
       {
           .imagePath =路径;
       }
       公共 字符串 imgPathProperty
       {
           获取
           {返回 imagePath; }
           设置
           {imagePath = ; }
       }
   }


在此行:

  公共 ImageHolder(字符串路径):基本(路径) 


我收到此异常:

  InnerException:{无法加载DLL'opencv_core242':指定的模块可以
找不到. (来自HRESULT的异常:0x8007007E)}  


opencv_core242在文件夹项目中,并且平台目标设置为x86.

您知道什么可能导致异常以及如何解决该异常吗?

预先谢谢您.

解决方案

在.../windows/system32中,我粘贴了cudart32_42_9.dll文件.它帮助我解决了问题

I created imageHolder class:

public class ImageHolder : Image<Bgr, Byte>
   {
       private String imagePath;

       public ImageHolder(String path):base(path)
       {
          this.imagePath = path;
       }
       public String imgPathProperty
       {
           get
           { return imagePath; }
           set
           { imagePath = value; }
       }
   }


In this row:

 public ImageHolder(String path):base(path)


I get this exception:

InnerException: {"Unable to load DLL 'opencv_core242': The specified module could 
not be found. (Exception from HRESULT: 0x8007007E)"} 


The opencv_core242 is in the folder project,and platform target set to x86.

Any idea what might cause the exception and how to solve it?

Thank you in advance.

解决方案

In .../windows/system32 I pasted cudart32_42_9.dll file.It''s helped me to fix me problem


这篇关于"Emgu.CV.CvInvoke"引发了异常.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆