无法在c#项目中加载cvextern

编程入门 行业动态 更新时间:2024-10-27 14:18:46
本文介绍了无法在c#项目中加载cvextern的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我试图调试我的程序,在c#中使用emgu和HaarCascade。 我收到一个例外:

i'm trying to debug my program, using emgu and HaarCascade in c#. i'm getting an exception like so :

无法加载DLL'cvextern':找不到指定的模块。 (HRESULT的异常:0x8007007E)

Unable to load DLL 'cvextern': The specified module could not be found. (Exception from HRESULT: 0x8007007E)

我已将文件cvextern.dll添加到我的项目中,并尝试复制总是和在文件的属性上复制更新选项。而且,build是在x64平台上。

i've added the file cvextern.dll to my project and tried both "copy always" and "copy if newer" options on the properties of the file. also, the build is in platform x64.

这部分是我写的:

private void Load_Click(object sender, EventArgs e) { OpenFileDialog dlg = new OpenFileDialog(); dlg.Filter = "Photo Files (*.jpg)|*.JPG"; dlg.CheckFileExists = true; if (dlg.ShowDialog() == DialogResult.OK) { Image<Bgr, Byte> My_Image = new Image<Bgr, byte>(dlg.FileName); HaarCascade face = new HaarCascade("haarcascade_frontalface_alt.xml");

,异常处于最后一行。

推荐答案

您收到的错误并不完全归结为cvextern,这个DLL实际上指向几乎所有其他opencv DLL,所有这些都是必需的。有了这个错误,您将需要在项目中使用以下dll。

The error your receiving is not solely down to cvextern this dll actually points to almost all of the other opencv dlls and all are required. With this error you will require the following dll in your project.

请注意,220是根据更新而更改的版本号。

Note that the "220" is the version number this will change according to updates.

  • cudart64_32_16.dll
  • cufft64_32_16.dll
  • cvextern.dll
  • npp64_32_16.dll
  • opencv_calib3d220.dll
  • opencv_contrib220.dll
  • opencv_core220.dll
  • opencv_features2d220.dll
  • opencv_flann220.dll
  • opencv_gpu220.dll
  • opencv_highgui220.dll
  • opencv_imgproc220.dll
  • opencv_legacy220.dll
  • opencv_ml220 .dll
  • opencv_objdetect220.dll
  • opencv_video220.dll
  • cudart64_32_16.dll
  • cufft64_32_16.dll
  • cvextern.dll
  • npp64_32_16.dll
  • opencv_calib3d220.dll
  • opencv_contrib220.dll
  • opencv_core220.dll
  • opencv_features2d220.dll
  • opencv_flann220.dll
  • opencv_gpu220.dll
  • opencv_highgui220.dll
  • opencv_imgproc220.dll
  • opencv_legacy220.dll
  • opencv_ml220.dll
  • opencv_objdetect220.dll
  • opencv_video220.dll

在我的文章中,有关 codeproject here 的文章中的其他内容将会覆盖此错误。

This error is covered along with others in my article on codeproject here.

任何其他问题让我知道,

Any other problems let me know,

干杯,

Chris

更多推荐

无法在c#项目中加载cvextern

本文发布于:2023-11-17 06:23:04,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1609138.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:加载   项目   cvextern

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!