Monday, May 7, 2012

OCR Conversion - Image to Text

  Reference :
  ========

  .Net -> COM -> Interop.MODI.dll

  Code :
  =====

  MODI.Document doc = new MODI.Document();
  doc.Create(filePath);
  doc.OCR(MODI.MiLANGUAGES.miLANG_ENGLISH, false, false);
  string result = ((MODI.Image)doc.Images[0]).Layout.Text;

No comments:

Post a Comment