public void StartMarkerFinding(Image background, Image carMarker, Image finishMarker)         
 {
     List<Bitmap> markerlist = new List<Bitmap>();
     markerlist.Add(new Bitmap(carMarker));
     markerlist.Add(new Bitmap(finishMarker));
     mf = new MyMarkerFinder(markerlist, new Bitmap(background));          
 }
Exemple #2
0
        private void button1_Click(object sender, EventArgs e)
        {
            Bitmap back2 = camera.getBitmap();

            if (back2 != null)
            {
                back = back2;
                pictureBox2.Image = back;
                mf = new MyMarkerFinder(markerlist, back);
            }
        }
Exemple #3
0
        public Form1()
        {
            InitializeComponent();
            rand = new Random();
            marker1 = new Bitmap(Image.FromFile("marker1.png"));            
            background = new Bitmap(Image.FromFile("back.png"));
            noise = new Bitmap(Image.FromFile("noise.png"));
            contour = new Bitmap(100, 100);
            pictureBox2.Image = contour;
            mf = new MyMarkerFinder(new List<Bitmap>() { marker1 }, background);

            f = new FileStream("positivesamples.txt",FileMode.Append);            
            timer1.Enabled = true;                     
        }
Exemple #4
0
        public Form1()
        {
            InitializeComponent();

            camera            = new Camera(pictureBox1);
            pictureBox1.Image = new Bitmap("cam.png");
            back = new Bitmap("back.png");
            pictureBox2.SizeMode = PictureBoxSizeMode.StretchImage;
            pictureBox2.Image    = back;


            markerlist = new List <Bitmap>();
            markerlist.Add(new Bitmap("marker1.png"));
            markerlist.Add(new Bitmap("marker2.png"));
            markerlist.Add(new Bitmap("marker3.png"));
            markerlist.Add(new Bitmap("marker4.png"));
            markerlist.Add(new Bitmap("marker5.png"));

            mf = new MyMarkerFinder(markerlist, back);

            docopy = true;
            run();
        }
Exemple #5
0
        public Form1()
        {
            InitializeComponent();
        
            camera = new Camera(pictureBox1);
            pictureBox1.Image = new Bitmap("cam.png"); 
            back = new Bitmap("back.png");
            pictureBox2.SizeMode = PictureBoxSizeMode.StretchImage;
            pictureBox2.Image = back;

         
            markerlist = new List<Bitmap>();
            markerlist.Add(new Bitmap("marker1.png"));
            markerlist.Add(new Bitmap("marker2.png"));
            markerlist.Add(new Bitmap("marker3.png"));
            markerlist.Add(new Bitmap("marker4.png"));
            markerlist.Add(new Bitmap("marker5.png"));
           
            mf = new MyMarkerFinder(markerlist, back);

            docopy = true;
            run();
            
        }
Exemple #6
0
 private void button1_Click(object sender, EventArgs e)
 {
     Bitmap back2 = camera.getBitmap();
     if (back2 != null)
     {
         back = back2;
         pictureBox2.Image = back;
         mf = new MyMarkerFinder(markerlist, back);
     }
 }