IntPtr p = Emgu.CV.CvInvoke.cvCreateCameraCapture(-1);
                IntPtr frame;
                while ((frame = Emgu.CV.CvInvoke.cvQueryFrame(p)) != IntPtr.Zero)
                {
                    MIplImage iplImage = (MIplImage)Marshal.PtrToStructure(frame, typeof(MIplImage));
                    Emgu.CV.Image<Bgr, byte> image = new Image<Bgr, byte>(iplImage.width, iplImage.height, iplImage.widthStep, iplImage.imageData);
                    this.pictureBox1.Image = image.Bitmap;
                    System.Threading.Thread.Sleep(10);
                    Application.DoEvents();
                }

相关文章:

  • 2021-12-23
  • 2021-09-17
  • 2022-12-23
  • 2022-12-23
  • 2021-07-07
  • 2022-12-23
  • 2021-10-28
猜你喜欢
  • 2021-12-10
  • 2022-01-05
  • 2022-12-23
  • 2021-08-07
  • 2021-08-03
  • 2022-01-15
  • 2021-05-09
相关资源
相似解决方案