- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我已经使用 EmguCV 在 C# 中编写了一个简单的程序来面对检测到的 VS 2010,但我收到以下异常:
The type initializer for 'Emgu.CV.CvInvoke' threw an exception.
我复制了所有的dll,但仍然出错。
我使用 window 7 pro x86、VS 2010、EmguCV2.4.2 并遵循本教程:http://www.youtube.com/watch?v=vdjoutNR2DQ
帮帮我!
最佳答案
@Marc Gravell:这是我的问题
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.
************** Exception Text **************
System.TypeInitializationException: The type initializer for 'Emgu.CV.CvInvoke' threw an exception. ---> System.DllNotFoundException: Unable to load DLL 'opencv_core242': The specified module could not be found. (Exception from HRESULT: 0x8007007E)
at Emgu.CV.CvInvoke.cvRedirectError(CvErrorCallback errorHandler, IntPtr userdata, IntPtr prevUserdata)
at Emgu.CV.CvInvoke..cctor()
--- End of inner exception stack trace ---
at Emgu.CV.CvInvoke.cvCreateCameraCapture(Int32 index)
at Emgu.CV.Capture..ctor(Int32 camIndex)
at Emgu.CV.Capture..ctor()
at WindowsFormsApplication2.Form1.Form1_Load(Object sender, EventArgs e) in D:\khtn\new\do an\project\WindowsFormsApplication2\WindowsFormsApplication2\Form1.cs:line 45
at System.Windows.Forms.Form.OnLoad(EventArgs e)
at System.Windows.Forms.Form.OnCreateControl()
at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
at System.Windows.Forms.Control.CreateControl()
at System.Windows.Forms.Control.WmShowWindow(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.Form.WmShowWindow(Message& m)
at System.Windows.Forms.Form.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
************** Loaded Assemblies **************
mscorlib
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.1 (RTMRel.030319-0100)
CodeBase: file:///G:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
----------------------------------------
WindowsFormsApplication2
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///D:/khtn/new/do%20an/project/WindowsFormsApplication2/WindowsFormsApplication2/bin/Debug/WindowsFormsApplication2.exe
----------------------------------------
System.Windows.Forms
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.1 built by: RTMRel
CodeBase: file:///G:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System.Drawing
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.1 built by: RTMRel
CodeBase: file:///G:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.1 built by: RTMRel
CodeBase: file:///G:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
Emgu.CV
Assembly Version: 2.4.2.1777
Win32 Version: 2.4.2.1777
CodeBase: file:///D:/khtn/new/do%20an/project/WindowsFormsApplication2/WindowsFormsApplication2/bin/Debug/Emgu.CV.DLL
----------------------------------------
Emgu.Util
Assembly Version: 2.4.2.1777
Win32 Version: 2.4.2.1777
CodeBase: file:///D:/khtn/new/do%20an/project/WindowsFormsApplication2/WindowsFormsApplication2/bin/Debug/Emgu.Util.DLL
----------------------------------------
System.Configuration
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.1 (RTMRel.030319-0100)
CodeBase: file:///G:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Xml
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.1 built by: RTMRel
CodeBase: file:///G:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
Emgu.CV.UI
Assembly Version: 2.4.2.1777
Win32 Version: 2.4.2.1777
CodeBase: file:///D:/khtn/new/do%20an/project/WindowsFormsApplication2/WindowsFormsApplication2/bin/Debug/Emgu.CV.UI.DLL
----------------------------------------
************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.
For example:
<configuration>
<system.windows.forms jitDebugging="true" />
</configuration>
When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.
关于c# - 错误 'Emgu.CV.CvInvoke' 的类型初始值设定项引发了 C#、Opencv 和 EmguCv 的异常,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16416036/
当尝试对完全相同的图像文件执行一些二进制操作时,但在不同的计算机(和监视器)上,使用 CvInvoke.Canny() 方法时我会得到不同的结果。 在调用此方法之前,我使用了几种操作方法,例如:CvI
我正在尝试将 EMGUCV 用于 C#。目前我已经安装了 Visual Studio 2010 速成版。当尝试执行一些简单的命令时,Emgu.CV.CvInvoke 抛出了异常,所以我将非托管代码放在
如果有人在.net 3.5 framework中使用Emgu openCv wrapper,请告诉我为什么会出现这个异常,它的内部异常是无法加载cxcore.dll。 最佳答案 对于 Emgu CV
我在我的项目中构建并引用了 Emgu.CV.World.dll。当我尝试像这样调用方法时 IntPtr complexImage = CvInvoke.cvCreateImage(image.Widt
我遇到了这个错误 The type initializer for 'Emgu.CV.CvInvoke' threw an exception. 当我尝试使用 Emgu CV 时。我已经尝试了我能想到
我已经编写了简单的程序来使用 EmguCV 在 C# 中的 VS 2010 中打开图像并显示图像,但出现以下异常: The type initializer for 'Emgu.CV.CvInvoke
首先让我说,我确实完整地遵循了许多教程,例如位于 EmguCv 主站点上的教程,但抛出了 TypeInitializationException。 现在,仔细听,因为这是非常奇怪的部分。我首先要说我的
我刚开始学习 Emgu 和 OpenCV。所以这可能是一个愚蠢的问题。当我查看 Emgu 文档(参见链接 http://www.emgu.com/wiki/files/3.1.0/document/h
我有点碰壁我可能只是对如何在 .net(c# express 2010)中设置项目缺乏一些基本的了解,但我似乎无法让这个程序工作 基本上,我正在尝试设置一个简单的程序,该程序将获取网络摄像头馈送并检查
我在为 EmguCv 3.0 中的 ConvexityDefects 指定变量类型时遇到问题。 我找不到 Vec4i 的替代品来声明“缺陷”。 VectorOfVectorOfInt defects
我已经安装了 EmguCV 2.4.2.1777。我有一个 32 位的 Windows 7,所以我使用安装程序安装了它。现在我正在尝试编写一个简单的代码来在 C# 的窗口中捕获网络摄像头的视频。问题是
我在 Web 解决方案 ASP.NET MVC5 中使用库 Emgu.CV.World 和一组 x86 类。版本 EMGU:3.1.0.2282。 用了一段时间,然后我把项目复制到同一个目录下,改了文
如何在 C# 中使用 EmguCv 调用 CvInvoke.HoughLines?因此不是 HoughLinesP 方法。我遇到的问题是用于第二个参数的类型,它是 IOutputArray。 最佳答案
我已经使用 EmguCV 在 C# 中编写了一个简单的程序来面对检测到的 VS 2010,但我收到以下异常: The type initializer for 'Emgu.CV.CvInvoke' t
如何使用 Emgu cv CvInvoke.cvLoadImage(...) 从特定文件夹加载图像?我正在尝试这样做 IntPtr inputImage = CvInvoke.cvLoadIm
我是一名优秀的程序员,十分优秀!