Пример #1
0
        private void pictureBox2Imaging(object bmpBitmap)
        {
            FaceFindAlgorythm faceFind = new FaceFindAlgorythm((Bitmap)bmpBitmap);

            pictureBox2.SizeMode = PictureBoxSizeMode.StretchImage;
            pictureBox2.Image    = faceFind.DrawBitmap();
        }
Пример #2
0
        private void video_NewFrame(object sender, NewFrameEventArgs eventArgs)
        {
            Bitmap            bmp      = (Bitmap)eventArgs.Frame.Clone();
            Bitmap            bmp1     = (Bitmap)eventArgs.Frame.Clone();
            FaceFindAlgorythm faceFind = new FaceFindAlgorythm(bmp);

            pictureBox1.SizeMode = PictureBoxSizeMode.StretchImage;
            pictureBox1.Image    = /*faceFind.DrawBitmap(ref richTextBox1);*/ bmp1;

            pictureBox2.SizeMode = PictureBoxSizeMode.StretchImage;
            pictureBox2.Image    = faceFind.DrawBitmap();
        }