Exemplo n.º 1
0
        private void timer1_Tick(object sender, EventArgs e)
        {
            try
            {
                Mat    img    = service.GetCurrFrame();
                Bitmap bitmap = BitmapConverter.ToBitmap(img);

                pictureBox1.Image = bitmap;
            }
            catch (Exception ex)
            {
                logger.Error("Show real image error,{0}", ex.ToString());
            }
        }