예제 #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);
 }
예제 #2
0
파일: RunApp.cs 프로젝트: Vasilut/Licenta
        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();
            }
        }
예제 #3
0
 private void ImageNetwork_Load(object sender, EventArgs e)
 {
     _readFile = new ReadFile();
 }