Example #1
0
        /// <summary>
        /// Обработчик кнопки добавления нового лица пользователя.
        /// </summary>
        private void AddFaceButton_Click(object sender, System.EventArgs e)
        {
            if (StopButton.Enabled)
            {
                StopRecogniser();
            }
            var tForm = new TrainingForm(this);

            tForm.Show();
        }
Example #2
0
 //конструктор
 public TrainingCapture(Capture gbr, HaarCascade fc, List <Image <Gray, byte> > tImages, int numLabels, List <string> lbls, TrainingForm mainForm)
 {
     this.grabber        = gbr;
     this.face           = fc;
     this.trainingImages = tImages;
     NumLabels           = numLabels;
     labels        = lbls;
     ContTrain     = NumLabels;
     _trainingForm = mainForm;
 }