Search code examples
c#tesseract

While sending the text in the picture to the textbox with the help of the ocr, the text appears the same as in the picture


While sending the text in the picture to the textbox with the help of the ocr, the text appears the same as in the picture

this orijinal picture enter image description here

enter image description here

this is the printout of the text in the picture in richtextbox

so how can i collect these words in one line


Solution

  • I remembered that I wrote this question now, about 1 week ago, I solved it. thansk for every answer

      var ocr = new TesseractEngine("./tessdata", "eng");
                            var sonuc = ocr.Process(img);
                            richTextBox1.Text = sonuc.GetText();
                            string[] c = richTextBox1.Text.Split('\n');
                            richTextBox1.Clear();
                            for (int i = 0; i < c.Length; i++)
                            {
                                richTextBox1.Text += c[i] + " ";
                            }