Ejemplo n.º 1
0
 public TrainerAnn(ref NeuronalNetwork neuronalNetwork, ReadFile rf, bool serialize)
 {
     _neuronalNetwork = neuronalNetwork;
     if (serialize == false)
     {
         _neuronalNetwork.InitializeNetwork();
     }
     //initializa training data
     _trainSet = rf.GetTrainingData();
     _testData = rf.GetTestData();
     File.WriteAllText("pua.txt", string.Empty);
 }
Ejemplo n.º 2
0
        private void button4_Click(object sender, EventArgs e)
        {
            //recognize a picture with smv

            OpenFileDialog fileDialog = new OpenFileDialog();

            fileDialog.Title       = "Please select a picture";
            fileDialog.Multiselect = false;
            fileDialog.Filter      = "PNG|*.png";
            DialogResult dr = fileDialog.ShowDialog();

            if (dr == DialogResult.OK)
            {
                string fileName  = Path.GetFileName(fileDialog.FileName);
                string parameter = "4 " + fileName;
                ProcesInitiator.GetProcesInitiator().InitProcess(parameter);
                var listaPredictii = ReadFile.ReadListaPozeAsociate();
                new ImageCategory(listaPredictii[0], listaPredictii).Show();
                new ImageSlideShow(listaPredictii[0], listaPredictii).Show();
            }
        }
Ejemplo n.º 3
0
 private void ImageNetwork_Load(object sender, EventArgs e)
 {
     _readFile = new ReadFile();
 }