.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Home >> Forum >> ASP.Net >> Post New QuestionBookmark and Share Subscribe to Forum

How i can read a Text from Image in a web application ?

Posted By: Lakhan Pal Garg     Posted Date: September 29, 2009    Points:2   Category :ASP.Net
Can any body give me a example of how we can read Text from Image.

its better if anybody can send me a example code.

Author: Amit Mehra             
Posted Date: September 29, 2009     Points: 5   

Hi Lakhan,

I guess you have to use third party software May be Microsoft Office Document Imaging API will help you..well i don't have the code right now..I will see if i can provide you some code in this..But you can check That API

Please "Mark As Answer " if this post help you.
Author: Lakhan Pal Garg             
Posted Date: September 29, 2009     Points: 5   

Hi Amit-

I have use Microsoft Office Document Imaging 12.0 type library and the code is :

private void ReadTextFromImage()


MODI.Document objModi = new MODI.Document();




MODI.Image image = (MODI.Image)objModi.Images[0];

MODI.Layout layout = image.Layout;

MODI.Word word = (MODI.Word)layout.Words[5];

//for (int j = 0; j < layout.Words.Count; j++)


// // Get this word and deal with it.

// MODI.Word word = (MODI.Word)layout.Words[j];



But it gives error on second line objModi.Create(@"c:\AGENCYR.tiff");
that is related to interop (IO Error). i am not able to find out reason of this. can you please help me in this?

Author: arronlee             
Posted Date: March 24, 2014     Points: 20   

I think you'd better google it and select some professional imaging toolkits (such as: http://www.yiigo.com/guides/vbnet/ ) to help you read text from image. And using code to deal with the relevant projects is too complicated for me. I hope you success. Good luck.

Best regards,

Next Tomorrow is Another Day .
Author: wenbuyi             
Posted Date: December 14, 2015     Points: 20   

I find a free online ocr http://www.online-code.net/ocr.html to read text from image, it supports 40+ languages, and can save converted text to editable txt file and searchable pdf document.

Post Reply

You must Sign In To post reply
Find more Forum Questions on C#, ASP.Net, Vb.Net, SQL Server and more Here
Quick Links For Forum Categories:
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  OOPs  SilverlightIISJQuery

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend