public void camerDriver_Closed() { //退出 try { video.CloseWebcam(); } catch (System.Exception ex) { MessageBox.Show(ex.StackTrace + ex.Message); } }
private void button2_Click(object sender, System.EventArgs e) { video.CloseWebcam(); }