在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
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(); } |
请发表评论