-
Notifications
You must be signed in to change notification settings - Fork 4
/
MainForm.Designer.cs
300 lines (293 loc) · 14.4 KB
/
MainForm.Designer.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
namespace MultiFaceRec
{
partial class FrmPrincipal
{
/// <summary>
/// Variable del diseñador requerida.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Limpiar los recursos que se estén utilizando.
/// </summary>
/// <param name="disposing">true si los recursos administrados se deben eliminar; false en caso contrario, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Código generado por el Diseñador de Windows Forms
/// <summary>
/// Método necesario para admitir el Diseñador. No se puede modificar
/// el contenido del método con el editor de código.
/// </summary>
private void InitializeComponent()
{
this.components = new System.ComponentModel.Container();
this.button2 = new System.Windows.Forms.Button();
this.textBox1 = new System.Windows.Forms.TextBox();
this.groupBox1 = new System.Windows.Forms.GroupBox();
this.label1 = new System.Windows.Forms.Label();
this.imageBox1 = new Emgu.CV.UI.ImageBox();
this.groupBox2 = new System.Windows.Forms.GroupBox();
this.btnDonate = new System.Windows.Forms.Button();
this.label5 = new System.Windows.Forms.Label();
this.label4 = new System.Windows.Forms.Label();
this.label3 = new System.Windows.Forms.Label();
this.label2 = new System.Windows.Forms.Label();
this.button1 = new System.Windows.Forms.Button();
this.imageBoxFrameGrabber = new Emgu.CV.UI.ImageBox();
this.groupBox3 = new System.Windows.Forms.GroupBox();
this.button3 = new System.Windows.Forms.Button();
this.button4 = new System.Windows.Forms.Button();
this.textBox2 = new System.Windows.Forms.TextBox();
this.textBox3 = new System.Windows.Forms.TextBox();
this.groupBox1.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.imageBox1)).BeginInit();
this.groupBox2.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.imageBoxFrameGrabber)).BeginInit();
this.groupBox3.SuspendLayout();
this.SuspendLayout();
//
// button2
//
this.button2.FlatStyle = System.Windows.Forms.FlatStyle.System;
this.button2.Location = new System.Drawing.Point(14, 222);
this.button2.Name = "button2";
this.button2.Size = new System.Drawing.Size(160, 31);
this.button2.TabIndex = 3;
this.button2.Text = "Add Train Face";
this.button2.UseVisualStyleBackColor = true;
this.button2.Click += new System.EventHandler(this.button2_Click);
//
// textBox1
//
this.textBox1.Location = new System.Drawing.Point(67, 196);
this.textBox1.Name = "textBox1";
this.textBox1.Size = new System.Drawing.Size(107, 20);
this.textBox1.TabIndex = 7;
//
// groupBox1
//
this.groupBox1.Controls.Add(this.label1);
this.groupBox1.Controls.Add(this.textBox1);
this.groupBox1.Controls.Add(this.imageBox1);
this.groupBox1.Controls.Add(this.button2);
this.groupBox1.Location = new System.Drawing.Point(909, 19);
this.groupBox1.Name = "groupBox1";
this.groupBox1.Size = new System.Drawing.Size(184, 269);
this.groupBox1.TabIndex = 8;
this.groupBox1.TabStop = false;
this.groupBox1.Text = "Training: ";
//
// label1
//
this.label1.AutoSize = true;
this.label1.Location = new System.Drawing.Point(11, 196);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(41, 13);
this.label1.TabIndex = 8;
this.label1.Text = "Name: ";
//
// imageBox1
//
this.imageBox1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.imageBox1.Location = new System.Drawing.Point(11, 18);
this.imageBox1.Name = "imageBox1";
this.imageBox1.Size = new System.Drawing.Size(163, 172);
this.imageBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
this.imageBox1.TabIndex = 5;
this.imageBox1.TabStop = false;
this.imageBox1.Click += new System.EventHandler(this.imageBox1_Click);
//
// groupBox2
//
this.groupBox2.Controls.Add(this.btnDonate);
this.groupBox2.Controls.Add(this.label5);
this.groupBox2.Controls.Add(this.label4);
this.groupBox2.Controls.Add(this.label3);
this.groupBox2.Controls.Add(this.label2);
this.groupBox2.Controls.Add(this.button1);
this.groupBox2.Location = new System.Drawing.Point(1136, 19);
this.groupBox2.Name = "groupBox2";
this.groupBox2.Size = new System.Drawing.Size(209, 299);
this.groupBox2.TabIndex = 9;
this.groupBox2.TabStop = false;
this.groupBox2.Text = "Results: ";
this.groupBox2.Enter += new System.EventHandler(this.groupBox2_Enter);
//
// btnDonate
//
this.btnDonate.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center;
this.btnDonate.FlatStyle = System.Windows.Forms.FlatStyle.System;
this.btnDonate.ForeColor = System.Drawing.SystemColors.Control;
this.btnDonate.Location = new System.Drawing.Point(63, 251);
this.btnDonate.Name = "btnDonate";
this.btnDonate.Size = new System.Drawing.Size(95, 30);
this.btnDonate.TabIndex = 10;
this.btnDonate.Text = "Exit";
this.btnDonate.UseVisualStyleBackColor = true;
this.btnDonate.Click += new System.EventHandler(this.button3_Click);
//
// label5
//
this.label5.AutoSize = true;
this.label5.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label5.ForeColor = System.Drawing.Color.Black;
this.label5.Location = new System.Drawing.Point(9, 23);
this.label5.Name = "label5";
this.label5.Size = new System.Drawing.Size(197, 15);
this.label5.TabIndex = 17;
this.label5.Text = "Persons present in the scene:";
//
// label4
//
this.label4.AutoSize = true;
this.label4.Font = new System.Drawing.Font("Times New Roman", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label4.ForeColor = System.Drawing.Color.Blue;
this.label4.Location = new System.Drawing.Point(9, 53);
this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(45, 19);
this.label4.TabIndex = 16;
this.label4.Text = "None";
//
// label3
//
this.label3.AutoSize = true;
this.label3.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label3.ForeColor = System.Drawing.Color.Red;
this.label3.Location = new System.Drawing.Point(163, 124);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(16, 16);
this.label3.TabIndex = 15;
this.label3.Text = "0";
//
// label2
//
this.label2.AutoSize = true;
this.label2.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label2.Location = new System.Drawing.Point(10, 92);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(179, 15);
this.label2.TabIndex = 14;
this.label2.Text = "Number of faces detected: ";
//
// button1
//
this.button1.FlatStyle = System.Windows.Forms.FlatStyle.System;
this.button1.Location = new System.Drawing.Point(12, 201);
this.button1.Name = "button1";
this.button1.Size = new System.Drawing.Size(182, 31);
this.button1.TabIndex = 2;
this.button1.Text = "Start";
this.button1.UseVisualStyleBackColor = true;
this.button1.Click += new System.EventHandler(this.button1_Click);
//
// imageBoxFrameGrabber
//
this.imageBoxFrameGrabber.BackColor = System.Drawing.Color.Transparent;
this.imageBoxFrameGrabber.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
this.imageBoxFrameGrabber.Location = new System.Drawing.Point(6, 22);
this.imageBoxFrameGrabber.Name = "imageBoxFrameGrabber";
this.imageBoxFrameGrabber.Size = new System.Drawing.Size(800, 660);
this.imageBoxFrameGrabber.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
this.imageBoxFrameGrabber.TabIndex = 4;
this.imageBoxFrameGrabber.TabStop = false;
this.imageBoxFrameGrabber.Click += new System.EventHandler(this.imageBoxFrameGrabber_Click);
//
// groupBox3
//
this.groupBox3.Controls.Add(this.imageBoxFrameGrabber);
this.groupBox3.Location = new System.Drawing.Point(12, 19);
this.groupBox3.Name = "groupBox3";
this.groupBox3.Size = new System.Drawing.Size(861, 700);
this.groupBox3.TabIndex = 10;
this.groupBox3.TabStop = false;
this.groupBox3.Text = "Camera";
//
// button3
//
this.button3.Location = new System.Drawing.Point(1047, 422);
this.button3.Name = "button3";
this.button3.Size = new System.Drawing.Size(75, 23);
this.button3.TabIndex = 11;
this.button3.Text = "Recognize";
this.button3.UseVisualStyleBackColor = true;
this.button3.Click += new System.EventHandler(this.button3_Click_1);
//
// button4
//
this.button4.Location = new System.Drawing.Point(1190, 422);
this.button4.Name = "button4";
this.button4.Size = new System.Drawing.Size(75, 23);
this.button4.TabIndex = 12;
this.button4.Text = "Analyze";
this.button4.UseVisualStyleBackColor = true;
this.button4.Click += new System.EventHandler(this.button4_Click);
//
// textBox2
//
this.textBox2.Location = new System.Drawing.Point(976, 396);
this.textBox2.Name = "textBox2";
this.textBox2.Size = new System.Drawing.Size(163, 20);
this.textBox2.TabIndex = 9;
//
// textBox3
//
this.textBox3.Location = new System.Drawing.Point(1176, 396);
this.textBox3.Name = "textBox3";
this.textBox3.Size = new System.Drawing.Size(149, 20);
this.textBox3.TabIndex = 13;
//
// FrmPrincipal
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.BackColor = System.Drawing.Color.WhiteSmoke;
this.ClientSize = new System.Drawing.Size(1354, 731);
this.Controls.Add(this.textBox3);
this.Controls.Add(this.textBox2);
this.Controls.Add(this.button4);
this.Controls.Add(this.button3);
this.Controls.Add(this.groupBox2);
this.Controls.Add(this.groupBox1);
this.Controls.Add(this.groupBox3);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow;
this.Name = "FrmPrincipal";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "Face Recognition";
this.WindowState = System.Windows.Forms.FormWindowState.Maximized;
this.Load += new System.EventHandler(this.FrmPrincipal_Load);
this.groupBox1.ResumeLayout(false);
this.groupBox1.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.imageBox1)).EndInit();
this.groupBox2.ResumeLayout(false);
this.groupBox2.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.imageBoxFrameGrabber)).EndInit();
this.groupBox3.ResumeLayout(false);
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private System.Windows.Forms.Button button2;
private Emgu.CV.UI.ImageBox imageBoxFrameGrabber;
private Emgu.CV.UI.ImageBox imageBox1;
private System.Windows.Forms.TextBox textBox1;
private System.Windows.Forms.GroupBox groupBox1;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.GroupBox groupBox2;
private System.Windows.Forms.Label label5;
private System.Windows.Forms.Label label4;
private System.Windows.Forms.Label label3;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.Button button1;
private System.Windows.Forms.Button btnDonate;
private System.Windows.Forms.GroupBox groupBox3;
private System.Windows.Forms.Button button3;
private System.Windows.Forms.Button button4;
private System.Windows.Forms.TextBox textBox2;
private System.Windows.Forms.TextBox textBox3;
}
}