【发布时间】:2021-04-08 12:51:46
【问题描述】:
我是法国人,不太容易用英语写作,所以对此我深表歉意。 我的项目需要使用 emguCV,但我有很多问题。我有 2 台 PC,一台是 windows 7 Professional 64 位,另一台是 windows 10 x64。在第一台 PC 上 emguCV 正常工作没问题,但在第二台 PC 上我使用 Visual Studio 2019 和 emguCV 3.4.3.3016 但运行时出现此错误
Unable to load DLL 'cvextern': The specified module could not be found. (Exception from HRESULT: 0x8007007E)
在 windows 退出时有这个
LoadLibraryEx C:\Users\adartois\Desktop\Nouveau dossier\WindowsFormsApp10\WindowsFormsApp10\bin\Debug\x86\cvextern.dll failed with error code 126: Le module spécifié est introuvable
为了解决这个错误,测试一下:
- 在我的 bin/debug 项目中,我从 emguCV 3.4.3.3016 中放置了 2 个文件夹 x64 和 x86。
- 我优先考虑 Emgu.CV.UI 和 Emgu.CV.World
- 我的 perso PC 在 Windows 10 中我从来没有遇到过这个问题
这是测试代码
OpenFileDialog Openfile = new OpenFileDialog();
if (Openfile.ShowDialog() == DialogResult.OK)
{
Image<Bgr, byte> My_Image = new Image<Bgr, byte>(Openfile.FileName);
pictureBox1.Image = My_Image.ToBitmap();
}
由于第 4 行 (Image
感谢任何帮助!
【问题讨论】:
标签: c#