Exemplo n.º 1
0
 public override void Run()
 {
     if (!Running)
     {
         // create a thread to send the master pulse
         grab_frames              = new WebcamVisionThreadGrabFrameMulti(new WaitCallback(FrameGrabCallback), this, endless_thread);
         grab_frames.PauseFile    = PauseFile;
         sync_thread              = new Thread(new ThreadStart(grab_frames.Execute));
         sync_thread.Priority     = ThreadPriority.Normal;
         sync_thread.IsBackground = true;
         Running = true;
         sync_thread.Start();
         Console.WriteLine("Stereo camera active");
     }
 }
Exemplo n.º 2
0
 public override void Run()
 {
     if (!Running)
     {
         // create a thread to send the master pulse
         grab_frames = new WebcamVisionThreadGrabFrameMulti(new WaitCallback(FrameGrabCallback), this, endless_thread);        
         grab_frames.PauseFile = PauseFile;
         sync_thread = new Thread(new ThreadStart(grab_frames.Execute));
         sync_thread.Priority = ThreadPriority.Normal;
         sync_thread.IsBackground = true;
         Running = true;
         sync_thread.Start();                
         Console.WriteLine("Stereo camera active");
     }
 }