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。