Search code examples
c#webcamemgucv

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.

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


Solution

  • Try This,not sure may be help you

     Camera.Dispose()