2018-09-17 15:20:28 +02:00
|
|
|
|
namespace FaceRecognizer
|
|
|
|
|
{
|
2018-09-18 07:43:19 +02:00
|
|
|
|
partial class MainForm
|
2018-09-17 15:20:28 +02:00
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Required designer variable.
|
|
|
|
|
/// </summary>
|
|
|
|
|
private System.ComponentModel.IContainer components = null;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Clean up any resources being used.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
|
|
|
|
protected override void Dispose(bool disposing)
|
|
|
|
|
{
|
|
|
|
|
if (disposing && (components != null))
|
|
|
|
|
{
|
|
|
|
|
components.Dispose();
|
|
|
|
|
}
|
|
|
|
|
base.Dispose(disposing);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#region Windows Form Designer generated code
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Required method for Designer support - do not modify
|
|
|
|
|
/// the contents of this method with the code editor.
|
|
|
|
|
/// </summary>
|
|
|
|
|
private void InitializeComponent()
|
|
|
|
|
{
|
2018-09-17 15:27:56 +02:00
|
|
|
|
this.console = new System.Windows.Forms.RichTextBox();
|
|
|
|
|
this.pictureBox1 = new System.Windows.Forms.PictureBox();
|
|
|
|
|
this.pictureBox2 = new System.Windows.Forms.PictureBox();
|
2018-09-20 11:48:50 +02:00
|
|
|
|
this.TrainBtn = new System.Windows.Forms.Button();
|
|
|
|
|
this.nameTxtBx = new System.Windows.Forms.TextBox();
|
|
|
|
|
this.RecconizeBtn = new System.Windows.Forms.Button();
|
2018-09-21 14:23:33 +02:00
|
|
|
|
this.trainBackWorker = new System.ComponentModel.BackgroundWorker();
|
|
|
|
|
this.recognizeBackWorker = new System.ComponentModel.BackgroundWorker();
|
2018-09-17 15:27:56 +02:00
|
|
|
|
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
|
|
|
|
|
((System.ComponentModel.ISupportInitialize)(this.pictureBox2)).BeginInit();
|
|
|
|
|
this.SuspendLayout();
|
|
|
|
|
//
|
|
|
|
|
// console
|
|
|
|
|
//
|
|
|
|
|
this.console.BackColor = System.Drawing.SystemColors.ActiveCaptionText;
|
|
|
|
|
this.console.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
|
|
|
|
|
this.console.ForeColor = System.Drawing.Color.Lime;
|
|
|
|
|
this.console.Location = new System.Drawing.Point(12, 318);
|
|
|
|
|
this.console.Name = "console";
|
|
|
|
|
this.console.ReadOnly = true;
|
|
|
|
|
this.console.Size = new System.Drawing.Size(776, 120);
|
|
|
|
|
this.console.TabIndex = 0;
|
|
|
|
|
this.console.Text = "";
|
2018-09-20 11:48:50 +02:00
|
|
|
|
this.console.ZoomFactor = 2F;
|
2018-09-17 15:27:56 +02:00
|
|
|
|
this.console.TextChanged += new System.EventHandler(this.console_TextChanged);
|
|
|
|
|
//
|
|
|
|
|
// pictureBox1
|
|
|
|
|
//
|
2018-09-21 14:23:33 +02:00
|
|
|
|
this.pictureBox1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
|
2018-09-17 15:27:56 +02:00
|
|
|
|
this.pictureBox1.Location = new System.Drawing.Point(464, 12);
|
|
|
|
|
this.pictureBox1.Name = "pictureBox1";
|
|
|
|
|
this.pictureBox1.Size = new System.Drawing.Size(324, 300);
|
2018-09-20 11:48:50 +02:00
|
|
|
|
this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize;
|
2018-09-17 15:27:56 +02:00
|
|
|
|
this.pictureBox1.TabIndex = 1;
|
|
|
|
|
this.pictureBox1.TabStop = false;
|
|
|
|
|
//
|
|
|
|
|
// pictureBox2
|
|
|
|
|
//
|
2018-09-21 14:23:33 +02:00
|
|
|
|
this.pictureBox2.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
|
2018-09-17 15:27:56 +02:00
|
|
|
|
this.pictureBox2.Location = new System.Drawing.Point(12, 12);
|
|
|
|
|
this.pictureBox2.Name = "pictureBox2";
|
|
|
|
|
this.pictureBox2.Size = new System.Drawing.Size(324, 300);
|
|
|
|
|
this.pictureBox2.TabIndex = 1;
|
|
|
|
|
this.pictureBox2.TabStop = false;
|
|
|
|
|
//
|
2018-09-20 11:48:50 +02:00
|
|
|
|
// TrainBtn
|
|
|
|
|
//
|
|
|
|
|
this.TrainBtn.Location = new System.Drawing.Point(363, 249);
|
|
|
|
|
this.TrainBtn.Name = "TrainBtn";
|
|
|
|
|
this.TrainBtn.Size = new System.Drawing.Size(75, 23);
|
|
|
|
|
this.TrainBtn.TabIndex = 2;
|
|
|
|
|
this.TrainBtn.Text = "Train";
|
|
|
|
|
this.TrainBtn.UseVisualStyleBackColor = true;
|
|
|
|
|
this.TrainBtn.Click += new System.EventHandler(this.TrainBtn_Click);
|
|
|
|
|
//
|
|
|
|
|
// nameTxtBx
|
|
|
|
|
//
|
|
|
|
|
this.nameTxtBx.Location = new System.Drawing.Point(348, 167);
|
|
|
|
|
this.nameTxtBx.Name = "nameTxtBx";
|
|
|
|
|
this.nameTxtBx.Size = new System.Drawing.Size(100, 20);
|
|
|
|
|
this.nameTxtBx.TabIndex = 3;
|
|
|
|
|
//
|
|
|
|
|
// RecconizeBtn
|
|
|
|
|
//
|
|
|
|
|
this.RecconizeBtn.Location = new System.Drawing.Point(363, 209);
|
|
|
|
|
this.RecconizeBtn.Name = "RecconizeBtn";
|
|
|
|
|
this.RecconizeBtn.Size = new System.Drawing.Size(75, 23);
|
|
|
|
|
this.RecconizeBtn.TabIndex = 4;
|
|
|
|
|
this.RecconizeBtn.Text = "Recognize";
|
|
|
|
|
this.RecconizeBtn.UseVisualStyleBackColor = true;
|
|
|
|
|
this.RecconizeBtn.Click += new System.EventHandler(this.RecconizeBtn_Click);
|
|
|
|
|
//
|
2018-09-21 14:23:33 +02:00
|
|
|
|
// trainBackWorker
|
|
|
|
|
//
|
|
|
|
|
this.trainBackWorker.WorkerReportsProgress = true;
|
|
|
|
|
this.trainBackWorker.DoWork += new System.ComponentModel.DoWorkEventHandler(this.trainBackWorker_DoWork);
|
|
|
|
|
this.trainBackWorker.RunWorkerCompleted += new System.ComponentModel.RunWorkerCompletedEventHandler(this.trainBackWorker_RunWorkerCompleted);
|
|
|
|
|
//
|
|
|
|
|
// recognizeBackWorker
|
|
|
|
|
//
|
|
|
|
|
this.recognizeBackWorker.DoWork += new System.ComponentModel.DoWorkEventHandler(this.recognizeBackWorker_DoWork);
|
|
|
|
|
this.recognizeBackWorker.RunWorkerCompleted += new System.ComponentModel.RunWorkerCompletedEventHandler(this.recognizeBackWorker_RunWorkerCompleted);
|
|
|
|
|
//
|
2018-09-20 11:48:50 +02:00
|
|
|
|
// MainForm
|
2018-09-17 15:27:56 +02:00
|
|
|
|
//
|
|
|
|
|
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
2018-09-17 15:20:28 +02:00
|
|
|
|
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
|
|
|
|
this.ClientSize = new System.Drawing.Size(800, 450);
|
2018-09-20 11:48:50 +02:00
|
|
|
|
this.Controls.Add(this.RecconizeBtn);
|
|
|
|
|
this.Controls.Add(this.nameTxtBx);
|
|
|
|
|
this.Controls.Add(this.TrainBtn);
|
2018-09-17 15:27:56 +02:00
|
|
|
|
this.Controls.Add(this.pictureBox2);
|
|
|
|
|
this.Controls.Add(this.pictureBox1);
|
|
|
|
|
this.Controls.Add(this.console);
|
2018-09-20 11:48:50 +02:00
|
|
|
|
this.Name = "MainForm";
|
2018-09-17 15:20:28 +02:00
|
|
|
|
this.Text = "Form1";
|
2018-09-17 15:27:56 +02:00
|
|
|
|
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
|
|
|
|
|
((System.ComponentModel.ISupportInitialize)(this.pictureBox2)).EndInit();
|
|
|
|
|
this.ResumeLayout(false);
|
2018-09-20 11:48:50 +02:00
|
|
|
|
this.PerformLayout();
|
2018-09-17 15:27:56 +02:00
|
|
|
|
|
2018-09-17 15:20:28 +02:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#endregion
|
2018-09-17 15:27:56 +02:00
|
|
|
|
|
|
|
|
|
private System.Windows.Forms.RichTextBox console;
|
|
|
|
|
private System.Windows.Forms.PictureBox pictureBox1;
|
|
|
|
|
private System.Windows.Forms.PictureBox pictureBox2;
|
2018-09-20 11:48:50 +02:00
|
|
|
|
private System.Windows.Forms.Button TrainBtn;
|
|
|
|
|
private System.Windows.Forms.TextBox nameTxtBx;
|
|
|
|
|
private System.Windows.Forms.Button RecconizeBtn;
|
2018-09-21 14:23:33 +02:00
|
|
|
|
private System.ComponentModel.BackgroundWorker trainBackWorker;
|
|
|
|
|
private System.ComponentModel.BackgroundWorker recognizeBackWorker;
|
2018-09-17 15:20:28 +02:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|