Ejemplo n.º 1
0
        private void LoadDataTest(object sender, EventArgs e)
        {
            string             trainingDataXMLPath = EigenfaceProcessorParameters.RELATIVE_PATH_TRAINING_DATA_XML;
            EigenfaceProcessor tmpEFP = (EigenfaceProcessor)ObjectXmlSerializer.ObtainSerializedObject(trainingDataXMLPath, typeof(EigenfaceProcessor), new List <Type>()
            {
                typeof(SangersAlgorithm)
            });

            eigenfaceProcessor.SangersAlgorithmObject.EigenfaceVectors = tmpEFP.SangersAlgorithmObject.EigenfaceVectors;
            eigenfaceProcessor.NbrEigenfaces                = tmpEFP.NbrEigenfaces;
            eigenfaceProcessor.ReshapeImageSize             = tmpEFP.ReshapeImageSize;
            eigenfaceProcessor.NbrDataBasePersons           = tmpEFP.NbrDataBasePersons;
            eigenfaceProcessor.NbrDataBasePicturesPerPerson = tmpEFP.NbrDataBasePicturesPerPerson;
            nbrOfEigenfacesTextBox.Text = eigenfaceProcessor.NbrEigenfaces.ToString();

            richTextBox1.Text += "Eigenface vectors loaded\n";
        }
Ejemplo n.º 2
0
 public FaceRecognitionMainForm()
 {
     InitializeComponent();
     eigenfaceProcessor = new EigenfaceProcessor();
     textBox1.Text      = "10000";
 }