简体   繁体   English

关闭网路摄影机

[英]Turn a webcam off

Currently My Program is able to turn on the webcam , but right now I have no idea how to turn the webcam off by code. 目前,我的程序可以打开webcam ,但现在我不知道如何通过代码关闭网络摄像头。

Here's the code I use to capture some pictures: 这是我用来捕获一些图片的代码:

private void webcamStart_Click(object sender, EventArgs e)
{
    image = new Capture();
    image.QueryFrame();
    Application.Idle += new EventHandler(FrameGrabber);
}

PS: I using emguCV PS:我使用emguCV

试试这个,不确定可能对您有帮助

 Camera.Dispose()

我认为这可能对您有用

image.Close()

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM