title: Using Tesseract OCR in C#
body: <p>I have trying to deploy tesseract for reading the clipboard image through the code below in a C# window.form. But, a black commandline window appears and nothing happens.</p>
  
  <pre><code> private void b1_Click(object sender, EventArgs e)
      {
          if (ofd1.ShowDialog() == DialogResult.OK)
          {
              var img = new Bitmap(ofd1.FileName);
              var ocr = new TessBaseAPI("./tessdata", "eng", OcrEngineMode.DEFAULT);
              var page = ocr.SetImage(img);
              tb1.Text = page.ToString();
  
  
          }
  
      }
  </code></pre>
  
  <p>The error it gives is <code>cannot convert from 'System.Drawing.Bitmap' to 'Leptonica.Pix'</code> hope this can be improved.</p>