Exemple #1
0
 //// // click action convert from bmp to stl format      
 private void button_capture_Click(object sender, EventArgs e)
 {
     try
     {
         for (int i = 1; i <= 5; i++)
         {
             var vp = (VideoSourcePlayer)this.Controls["videoSourcePlayer" + i];
             vp.NewFrame += SaveingImage;
             Thread.Sleep(700);
         }
         _tempCount = 0;
         //// convert from bmp to stl format action
         try
         {
             OpencvEngine ImageEngine = new OpencvEngine();
             ImageEngine.CreateSTLFormat();
         }
         catch (Exception ex) { MessageBox.Show("Image To STL action is loss"); }
     }
     catch (Exception ex) { MessageBox.Show("SaveingImage action is loss"); }
 }
Exemple #2
0
 //// // click action convert from bmp to stl format
 private void button_capture_Click(object sender, EventArgs e)
 {
     try
     {
         for (int i = 1; i <= 5; i++)
         {
             var vp = (VideoSourcePlayer)this.Controls["videoSourcePlayer" + i];
             vp.NewFrame += SaveingImage;
             Thread.Sleep(700);
         }
         _tempCount = 0;
         //// convert from bmp to stl format action
         try
         {
             OpencvEngine ImageEngine = new OpencvEngine();
             ImageEngine.CreateSTLFormat();
         }
         catch (Exception ex) { MessageBox.Show("Image To STL action is loss"); }
     }
     catch (Exception ex) { MessageBox.Show("SaveingImage action is loss"); }
 }