EmguCV不会从相机加载图像

时间:2016-05-07 19:00:57

标签: c# emgucv

用这个简单的c#代码我试图打开相机

ImageViewer viewer = new ImageViewer(); //create an image viewer
Capture capture = new Capture(); //create a camera captue
Application.Idle += new EventHandler(delegate(object sender, EventArgs e)
    {  
        //run this until application closed (close button click on image viewer)
        viewer.Image = capture.QueryFrame(); //draw the image obtained from camera
    });
viewer.ShowDialog(); //show the image viewer

结果:

enter image description here

那么问题是什么?

1 个答案:

答案 0 :(得分:0)

您的相机drivers似乎未正确安装。尝试重新安装相机drivers