phoenix.XLIX 2 anni fa
parent
commit
ddbd2fa212

+ 4 - 3
ImpulseVision/Animator.cs

@@ -71,7 +71,7 @@ namespace ImpulseVision
 
             Debug.WriteLine("Запуск анимации: " + Anim.ID + "| TargetValue: " + Anim.TargetValue);
             Anim.Status = Animation.AnimationStatus.Requested;
-
+            /*
             Animation dupAnim = GetDuplicate(Anim);
 
             if (dupAnim != null)
@@ -85,10 +85,10 @@ namespace ImpulseVision
                     return;
                 }
             }
-
+            */
             AnimationList.Add(Anim);
         }
-
+        /*
         private static Animation GetDuplicate(Animation Anim)
         {
             try
@@ -98,5 +98,6 @@ namespace ImpulseVision
             }
             catch { return null; }
         }
+        */
     }
 }

+ 5 - 3
ImpulseVision/FormMain.cs

@@ -158,8 +158,6 @@ namespace ImpulseVision
         /// </summary>
         private void ProcessFrame()
         {
-            if (BgrFrame == null)
-                return;
             BgrFrame = Capture.QueryFrame().ToImage<Bgr, Byte>().Flip(FlipType.Horizontal);
 
             if (BgrFrame != null)
@@ -430,6 +428,9 @@ where ID = '{IdUser}'";
         /// </summary>
         private void BtnAddUser_Click(object sender, EventArgs e)
         {
+            if (IsWorking)
+                return;
+
             if (ViewUserByType == 0)
             {
                 FormEditingGuard Fg = new FormEditingGuard(true, CurrentUser.UserID.ToString()); ;
@@ -488,9 +489,10 @@ where ID = '{IdUser}'";
 
             if (BgrFrame != null)
             {
-                BgrFrame = null;
                 Capture.Dispose();
                 CaptureTimer.Tick -= CaptureTimer_Tick;
+
+                BgrFrame = null;
             }
 
             PbxEther.Image = Properties.Resources._9110852_video_no_icon;

BIN
ImpulseVision/bin/Debug/ImpulseVision.exe


BIN
ImpulseVision/bin/Debug/Source/TrainedImages/Наталья1517875038.bmp