Esempio n. 1
0
        private void button4_Click_1(object sender, EventArgs e)
        {
            // ATLFaceProcessLib.VideoCapturerClass v = new ATLFaceProcessLib.VideoCapturerClass();
            if (capturer == null)
            {
                capturer = new FaceLib.Capturer();
            }
            else
            {
                capturer.ReleaseCapture();
            }
            //Capturer c = new Capturer();
            int index = int.Parse(txtSourceCam.Text);

            capturer.Capture(index);
            CameraTimer.Enabled = true;
            CameraTimer.Start();
            GarbageTimer.Enabled = true;
            GarbageTimer.Start();
        }
Esempio n. 2
0
 private void button7_Click(object sender, EventArgs e)
 {
     if (rdVideo.Checked)
     {
         OpenFileDialog of = new OpenFileDialog();
         of.Filter = "AVI Files|*.avi|Video CD Files|*.dat;*.vcd*|MPEG-4 Files|*.mp4|MPEG Files|*.mpeg" +
                     "|MPEG Files|*.mpe|MPEG Files|*.mpg|Flash Video|*.flv|DIVx Video|*.divx" +
                     "|DVD Files|*.vob|3GP Mobile Video|*.3gp|MKV Files|*.mkv|Windows Media Video Files|*.wmv|Apple Video Files|*.mov";
         if (of.ShowDialog() == System.Windows.Forms.DialogResult.OK)
         {
             txtSourceVideo.Text = of.FileName;
             if (capturer == null)
             {
                 capturer = new FaceLib.Capturer();
             }
             if (System.IO.File.Exists(txtSourceVideo.Text))
             {
                 capturer.CaptureVideo(txtSourceVideo.Text);
             }
             CameraTimer.Enabled = true;
             CameraTimer.Start();
         }
     }
 }
Esempio n. 3
0
 private void Form1_Load(object sender, EventArgs e)
 {
     CameraTimer.Start();
     //webBrowser1.Navigate("http://192.168.0.101/cgi-bin/hi3510/snap.cgi?&-getstream&-chn=1");
     //Process.Start("chrome.exe", "http://www.YourUrl.com");
 }