Click here to Skip to main content
15,896,912 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi Currently i am working on project that correct student drawing test and I want read every line from images Pls help help me
thaxs
Posted
Comments
CHill60 31-Jul-14 11:35am    
What have you tried and where are you stuck?
Sergey Alexandrovich Kryukov 31-Jul-14 12:55pm    
Totally unclear. What kind of "student drawing". What should be the "correction"? What are the ultimate goal. With so little detail you cannot really expect and help.
—SA
abddii 2-Aug-14 9:20am    
i can read text from image by using OCR, but i have not any idea about identify length of a specific line, calculating angle between two line by reading scanned image.
txs for your helping !
Sergey Alexandrovich Kryukov 2-Aug-14 20:19pm    
But you did not answer any of my questions...
—SA

1 solution

Not sure if I understood fully but seems like you want to read text from the Images. This is Optical Character Recognition.

http://en.wikipedia.org/wiki/Optical_character_recognition


You may search on Google to get more information on this.

https://www.google.com/#q=OCR+c%23

Edit
Now I understood what you are trying to achieve. You want to detect straight lines on the Images and then line thickness. Not sure OCR does it but it may give you a direction for your research area. Please post your findings on this.
 
Share this answer
 
v2
Comments
Sergey Alexandrovich Kryukov 31-Jul-14 12:54pm    
No, it really does not provide an answer. I would not answer to such a vague question.
—SA
abddii 2-Aug-14 9:25am    
txs for u'r help. i read OCR and done some staff i can read text from the image that is done correctly,
Here is the code i used
protected void Upload(object sender, EventArgs e)
{

string filePath = Server.MapPath("~/Uploads/" + Path.GetFileName(FileUpload1.PostedFile.FileName));
FileUpload1.SaveAs(filePath);
string extractText = this.ExtractTextFromImage(filePath);
lblText.Text = extractText.Replace(Environment.NewLine, "<br />");
}

private string ExtractTextFromImage(string filePath)
{

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;
}

is their any chance i can identify the length of line and calculating angles b/n two line by using OCR ?
RaisKazi 5-Aug-14 9:59am    
Have no idea about lines detections, infact keep me posted if you find something.

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