public static void initWebCam()
        {
            imgVideo = new System.Windows.Forms.PictureBox();
            imgVideo.Size = new System.Drawing.Size(163, 160);

            webcam = new WebCam();
            webcam.InitializeWebCam(ref imgVideo);
            webcam.Start();
        }
示例#2
0
文件: Form1.cs 项目: ruizz/C.A.D.S.
        private void mainWinForm_Load(object sender, EventArgs e)
        {
            webcam = new WebCam();
            webcam.InitializeWebCam(ref imgVideo);
            webcam.Start();

            thread = new Thread(new ThreadStart(captureMovement));
            thread.Start();
        }
 private void bntStart_Click(object sender, EventArgs e)
 {
     webcam.Start();
 }
示例#4
0
文件: Form1.cs 项目: lx128/ForSchool
 private void bntStart_Click(object sender, EventArgs e)
 {
     webcam.Start();
     webcam.Continue();
     webcam_on = true;
 }