In that image particular height weight text need to be extract text. For that i used modiDocument. codes re below:
public string ExtractTextFromImage(string filepath)
{
try
{
Document modiDocument = new Document();
modiDocument.Create(filepath);
modiDocument.OCR(MiLANGUAGES.miLANG_ENGLISH);
MODI.Image modiImage = (modiDocument.Images[0] as MODI.Image);
string extractedText = modiImage.Layout.Text;
modiDocument.Close();
return extractedText;
}
catch (Exception)
{
throw;
}
return filepath;
}
From above code i can get fill text from image. how to take particular height width text from image.