C#:Emgu CV:尝试从捕获设备获取帧时出错。 AccessViolationException未处理

时间:2013-06-11 06:29:36

标签: c# emgucv

private void CameraCapture_Load(object sender, EventArgs e)
 {
//Initialize the capture device
capture_face = new Capture();
capture_face.QueryFrame();
//Initialize the CapturedFrame event
Application.Idle += new EventHandler(CapturedFrame);
}

private void CapturedFrame(object sender, EventArgs e)
{            

current_Frame = capture_face.QueryFrame().Resize(400, 320, Emgu.CV.CvEnum.INTER.CV_INTER_CUBIC);

gray = current_Frame.Convert<Gray, Byte>();
}
  

AccessViolationException未处理。    - 尝试读取或写入受保护的内存。

任何人都可以帮我解决问题吗?

当我在执行表单时尝试将帧设置为当前帧时,我收到此错误。我使用的是Windows 7。

0 个答案:

没有答案