Example #1
0
        private void btn_show_image_Click(object sender, EventArgs e)
        {
            if (!m_showing)
            {
                service.InitOCRService(false, Constants.CAMERAPATH);

                timer1.Enabled      = true;
                m_showing           = true;
                btn_show_image.Text = "停止播放";
            }
            else
            {
                m_showing      = false;
                timer1.Enabled = false;
                service.ReleaseOCRService();

                pictureBox1.Image   = m_bkBitmap;
                btn_show_image.Text = "显示画面";
            }
        }