关于使用EmguCV出现 “无法加载 DLL“cvextern”: 找不到指定的程序” 的解决方法
2018-02-01 11:27
1016 查看
1.按要求将Emgu.CV.UI,Emgu.CV.World,Emgu.CV.World,Emgu.CV.GL添加引用到项目。
2.然后将WinForm添加一个按钮和PictureBox,后台代码如下:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using Emgu.CV;
using Emgu.CV.Structure;
using Emgu.CV.ML;
using Emgu.CV.Util;
namespace EmguForm
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void Form1_Load(object sender, EventArgs e)
{
}
private void button1_Click(object sender, EventArgs e)
{
var dialog = new OpenFileDialog();
dialog.Filter = "图片(*.jpg/*.png/*.gif/*.bmp)|*.jpg;*.png;*.gif;*.bmp";
if (dialog.ShowDialog() == DialogResult.OK)
{
var filename = dialog.FileName;
Image<Bgr, Byte> img = new Image<Bgr, Byte>(filename);
Image<Bgr, byte> dest = new Image<Bgr, byte>(CvInvoke.cvGetSize(img));
CvInvoke.cvCopy(img, dest, IntPtr.Zero);
pictureBox1.Image = dest.ToBitmap();
}
}
}
}
3.运行报错误:“关于使用EmguCV出现 “无法加载 DLL“cvextern”: 找不到指定的程序” 的解决方法”
4.通过网上查找原因尝试,结果方案如下,将Emgu安装文件下(64位)C:\Emgu\emgucv-windesktop 3.3.0.2824\bin\x64下的Dll复制到Winform项目Debug文件夹下即可正常运行加载图片。
5.问题原因:项目添加引用Emgu.CV.UI等的四个库对cvextern.dll存在依赖。
2.然后将WinForm添加一个按钮和PictureBox,后台代码如下:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using Emgu.CV;
using Emgu.CV.Structure;
using Emgu.CV.ML;
using Emgu.CV.Util;
namespace EmguForm
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void Form1_Load(object sender, EventArgs e)
{
}
private void button1_Click(object sender, EventArgs e)
{
var dialog = new OpenFileDialog();
dialog.Filter = "图片(*.jpg/*.png/*.gif/*.bmp)|*.jpg;*.png;*.gif;*.bmp";
if (dialog.ShowDialog() == DialogResult.OK)
{
var filename = dialog.FileName;
Image<Bgr, Byte> img = new Image<Bgr, Byte>(filename);
Image<Bgr, byte> dest = new Image<Bgr, byte>(CvInvoke.cvGetSize(img));
CvInvoke.cvCopy(img, dest, IntPtr.Zero);
pictureBox1.Image = dest.ToBitmap();
}
}
}
}
3.运行报错误:“关于使用EmguCV出现 “无法加载 DLL“cvextern”: 找不到指定的程序” 的解决方法”
4.通过网上查找原因尝试,结果方案如下,将Emgu安装文件下(64位)C:\Emgu\emgucv-windesktop 3.3.0.2824\bin\x64下的Dll复制到Winform项目Debug文件夹下即可正常运行加载图片。
5.问题原因:项目添加引用Emgu.CV.UI等的四个库对cvextern.dll存在依赖。
相关文章推荐
- 关于使用EmguCV出现 “无法加载 DLL“cvextern”: 找不到指定的程序” 的解决方法
- 关于使用EmguCV出现 “无法加载 DLL“cvextern”: 找不到指定的程序” 的解决方法
- "无法加载 DLL“oramts.dll”: 找不到指定的模块。 (异常来自 HRESULT:0x8007007E)。" —— 的解决方法
- c# p/invoke 无法加载指定的dll 找不到指定的模块 解决方法
- cmd命令行执行java程序的编译和执行的方法及可能出现找不到或无法加载主类的错误的解决
- 在WIN10系统下运行VS2013编译成功后出现:无法启动程序“.exe” 系统找不到指定文件的问题的解决方法
- c# 无法加载DLL“xxxx”:找不到指定的模块(异常来自HRESULT:0X8007007E)的一个解决方法
- 关于VS2013提示无法启动程序,找不到指定文件的解决方法
- "无法加载 DLL“oramts.dll”: 找不到指定的模块。 (异常来自 HRESULT:0x8007007E)。" —— 的解决方法
- 运行VS2013编译成功后出现:无法启动程序“.exe” 系统找不到指定文件的问题的解决方法
- 关于无法加载DLL"***.dll":找不到指定的模块(异常来自HRESULT:0x8007007E)问题的解决办法
- c# 无法加载DLL“xxxx”:找不到指定的模块(异常来自HRESULT:0X8007007E)的一个解决方法
- 无法加载安装程序库wbemupgd.dll,或是找不到函数OcEntry”解决办法
- 命令行下使用javah命令生成.h文件,出现“错误: 无法访问android.app.Activity 找不到android.app.Activity的类文件”的解决方法
- 使用U盘PE安装系统,显示安装程序无法重新启动计算机,请关闭所有应用程序并且关机,以便继续进行XP安装。找不到网络路径。的解决方法
- 关于VC++6.0加载控件出现Unable to register this add-in because its DllRegisterServer returns an error 的解决方法
- VS 无法启动程序(系统找不到指定路径)的解决方法
- OpenCV程序在Debug时出现「PDB文件无法加载」的一个解决方法
- 关于无法加载 DLL“.dll”: 找不到指定的模块。 (异常来自 HRESULT:0x8007007E)。
- vs2010 Microsoft Visual Studio 无法加载 DLL“UIAutomationCore.dll”: 找不到指定的程序。 (异常来自 HRESULT:0x8007007F) 错误处理方式