title: How to preprocess in EmguCV with Leptonica as done in Capture2Text
body: <p>I am developing an OCR application in EmguCV. My target is to achieve the same results as done by Capture2Text. </p>
  
  <p>Capture2Text uses Tesseract engine for OCR and Leptonica library for Preprocessing. As we know EmguCV is using Tesseract engine for OCR therefore we are left with Preprocessing.</p>
  
  <p>Preprocessing in Capture2Text is done by calling the functions of Leptonica in the following order with specific values. The actual code file is available in the <a href="http://sourceforge.net/projects/capture2text/files/Capture2Text/Capture2Text_v3.5/" rel="nofollow">leptonica_util.c</a> uner the folder ...\Capture2Text_v3.5\Capture2Text\SourceCode\leptonica_util</p>
  
  <p>Read in source image
  Convert to grey scale
  Perform auto negate image
  Scale the image (linear interpolation)
  Apply unsharp mask
  Perform Otsu Binarize</p>
  
  <p>Out of these two possible options, which one is better to follow and how ?</p>
  
  <ol>
  <li>Use Leptonica library in EmguCV by including it in the code and then calling the same functions with same parameters.</li>
  <li>Try to find and use equivalent functions already available in EmguCV.</li>
  </ol>
  
  <p>I have tried to go for option 1, but could not do it properly. For 2nd option I am not sure where to look specifically in EmguCV.</p>