Exemple #1
0
        private async void OCR_button_Click(object sender, EventArgs e)
        {
            await Task.Run(async() =>
            {
                string text = "";

                try
                {
                    text = await OCR.GetTextFromPic();
                }
                catch (Exception ex)
                {
                    ShowException(ex, "Tesseract Error");
                }

                richTextBox1.Text = text;
            });
        }