コード例 #1
0
        private void button2_Click(object sender, EventArgs e)
        {
            if (Highlight.HighLightOn)
            {
                originalForm.CaptureTxt();

                try
                {
                    textBox1.Text = OCRProcess.TransformImage(originalForm.recTxt.TextImage.Bitmap);
                }
                catch (Exception ex)
                {
                    MessageBox.Show("OCRProcess Resaltado: " + ex.Message);
                }
            }
            else
            {
                originalForm.CaptureImage();

                try
                {
                    textBox1.Text = OCRProcess.TransformImage(originalForm.RectangleImage.Bitmap);
                }
                catch (Exception ex)
                {
                    MessageBox.Show("OCRProcess rectangulo: " + ex.Message);
                }
            }
        }
コード例 #2
0
        private void ButtonAction()
        {
            if (Highlight.HighLightOn)
            {
                originalForm.CaptureTxt();

                try
                {
                    textBox1.Text = OCRProcess.TransformImage(originalForm.recTxt.TextImage.Bitmap);
                }
                catch (Exception ex)
                {
                    MessageBox.Show("OCRProcess Resaltado: " + ex.Message);
                }
            }
            else
            {
                if (originalForm.plugin.AutoCamCapture)
                {
                    originalForm.CaptureImage();

                    try
                    {
                        textBox1.Text = OCRProcess.TransformImage();
                    }
                    catch (Exception ex)
                    {
                        MessageBox.Show("OCRProcess rectangulo: " + ex.Message);
                    }
                }
            }
        }