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();
        }
Exemple #2
0
        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();
 }
Exemple #4
0
 private void bntStart_Click(object sender, EventArgs e)
 {
     webcam.Start();
     webcam.Continue();
     webcam_on = true;
 }