我遇到了这个错误:
类型初始化程序“Emgu.CV.CvInvoke”的异常。
当我尝试使用Emgu CV时。我已经尝试了我能想到的所有方法来修复它,但它仍然会显示相同的错误。当我单击按钮时,它显示:
对象引用未设置为对象实例。
以下是我尝试的代码:
void ProcessFunction(object sender, EventArgs e)
{
imgOrg = capturecam.QueryFrame();
if (imgOrg == null) return;
imgProc = imgOrg.InRange(new Bgr(50, 50, 50), new Bgr(255, 255, 255));
imgProc = imgProc.SmoothGaussian(9);
imageBox1.Image = imgOrg;
imageBox2.Image = imgProc;
}
我可能做错了什么,如何进一步调试?谢谢!