瀏覽代碼

Мелкие исправления

phoenix.XLIX 1 年之前
父節點
當前提交
491c1ff771

+ 3 - 3
T FaceRecognizer/FormMain.Designer.cs

@@ -650,9 +650,9 @@
             this.tabPage4.Controls.Add(this.CbxSaveLocationForm);
             this.tabPage4.Controls.Add(this.CmbCams);
             this.tabPage4.Controls.Add(this.label7);
-            this.tabPage4.Location = new System.Drawing.Point(4, 22);
+            this.tabPage4.Location = new System.Drawing.Point(4, 30);
             this.tabPage4.Name = "tabPage4";
-            this.tabPage4.Size = new System.Drawing.Size(429, 363);
+            this.tabPage4.Size = new System.Drawing.Size(429, 355);
             this.tabPage4.TabIndex = 3;
             this.tabPage4.Text = "Settings";
             this.tabPage4.UseVisualStyleBackColor = true;
@@ -662,7 +662,7 @@
             this.BtnSaveParameters.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
             this.BtnSaveParameters.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(58)))), ((int)(((byte)(166)))), ((int)(((byte)(64)))));
             this.BtnSaveParameters.ForeColor = System.Drawing.Color.White;
-            this.BtnSaveParameters.Location = new System.Drawing.Point(79, 308);
+            this.BtnSaveParameters.Location = new System.Drawing.Point(79, 300);
             this.BtnSaveParameters.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
             this.BtnSaveParameters.Name = "BtnSaveParameters";
             this.BtnSaveParameters.Size = new System.Drawing.Size(341, 37);

+ 2 - 1
T FaceRecognizer/FormMain.cs

@@ -461,7 +461,8 @@ values (@last,@first,@patr,@phone,@snils,@photo)
         {
             try
             {
-                BgrFrame = Capture.QueryFrame().ToImage<Bgr, Byte>().Flip(FlipType.Horizontal);
+                if(Capture != null)
+                    BgrFrame = Capture.QueryFrame().ToImage<Bgr, Byte>().Flip(FlipType.Horizontal);
             }
             catch
             {

二進制
T FaceRecognizer/bin/Debug/Source/Faces/Егор74851688596.bmp


二進制
T FaceRecognizer/bin/Debug/Source/Faces/Петр56456131951.bmp


二進制
T FaceRecognizer/bin/Debug/T FaceRecognizer.exe


+ 2 - 2
T FaceRecognizer/bin/Debug/localSettings.txt

@@ -1,5 +1,5 @@
 0
 -1
 -1
-64
-36
+-1
+-1