用这个简单的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
结果:
那么问题是什么?
答案 0 :(得分:0)
您的相机drivers
似乎未正确安装。尝试重新安装相机drivers
。