Exemple #1
0
        private void Learn()
        {
            int[,] clipArr = NeiroGraphUtils.CutImageToArray((Bitmap)pictureBox1.Image, new Point(pictureBox1.Width, pictureBox1.Height));

            //int[,] clipArr = NeiroGraphUtils.CutImageToArray((Bitmap)pictureBox4.Image, new Point(pictureBox4.Width, pictureBox4.Height));

            if (clipArr == null)
            {
                return;
            }

            arr = NeiroGraphUtils.LeadArray(clipArr, new int[NeiroWeb.neironInArrayWidth, NeiroWeb.neironInArrayHeight]);
            pictureBox3.Image    = NeiroGraphUtils.GetBitmapFromArr(clipArr);
            pictureBox3.SizeMode = PictureBoxSizeMode.StretchImage;
            pictureBox2.Image    = NeiroGraphUtils.GetBitmapFromArr(arr);
            pictureBox2.SizeMode = PictureBoxSizeMode.StretchImage;

            string s = nw.CheckLitera(arr);

            if (s == null)
            {
                s = "idk";
            }

            label7.Text = $"{s}";
        }
Exemple #2
0
 private void Form1_Load(object sender, EventArgs e)
 {
     NeiroGraphUtils.ClearImage(pictureBox1);
     nw = new NeiroWeb();
     string[] items = nw.GetLiteras();
     if (items.Length > 0)
     {
         comboBox1.Items.AddRange(items);
         comboBox1.SelectedIndex = 0;
     }
 }
Exemple #3
0
 public void picturebox_clean()
 {
     NeiroGraphUtils.ClearImage(pictureBox1);
     NeiroGraphUtils.ClearImage(pictureBox2);
     NeiroGraphUtils.ClearImage(pictureBox3);
 }