Click here to Skip to main content
14,933,981 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i am trying from last 2 weeks but can't get any success in it. for eg. i am upload an image from file uploader and want to read text from that image. image is liked written manually text in it like say 'i am yash khona'.

What I have tried:

using IronOcr;

protected void Button1_Click(object sender, EventArgs e)
{
string filePath = Server.MapPath("~/Uploads/" +
Path.GetFileName(FileUpload1.PostedFile.FileName));
FileUpload1.SaveAs(filePath);
var extractText = new AutoOcr();
var result = extractText.Read(filePath);
lblText.Text = result.Text;
}
Posted
Comments
Jochen Arndt 27-Aug-18 9:32am
   
Any errors or exceptions?

Note also that not all OCR libraries support hand written text and IronOcr seems to be one of them.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900