Extract text from jpeg image file
05 Jan 2010
How to extract a text from jpeg image file,I have already extracted text from jpeg image file using Modi but i did'nt got the 100% accuracy in the text file.How can we acheive 100 % accuracy.
Here is my code in C#:
private void btnConvert_Click(object sender, EventArgs e)
public void CheckFileType(string directoryPath)
IEnumerator files = Directory.GetFiles(directoryPath).GetEnumerator();
//get file extension
string fileExtension = Path.GetExtension(Convert.ToString(files.Current));
//get file name without extenstion
string fileName = Convert.ToString(files.Current).Replace(fileExtension, string.Empty);
//Check for JPG File Format
if (fileExtension == ".jpg" || fileExtension == ".JPG") // or // ImageFormat.Jpeg.ToString()
//OCR Operations ...
MODI.Document md = new MODI.Document();
//md.OCR(MODI.MiLANGUAGES.miLANG_ENGLISH, true, true);
md.OCR(MODI.MiLANGUAGES.miLANG_ENGLISH, true, true);
MODI.Image image = (MODI.Image)md.Images;
//create text file with the same Image file name
FileStream createFile = new FileStream(fileName + ".txt", FileMode.CreateNew);
//save the image text in the text file
StreamWriter writeFile = new StreamWriter(createFile);
//MessageBox.Show("This Image hasn't a text or has a problem",
Date: 15/Jan/2010 Rating:
There is no one software / api / sdk which guaranteed you 100% accuracy for making image to text conversion. because after all everything is depends upon the quality of the image.
well, for some brief, it is just to let you know that this process is call as OCR ( Optical Character Recognition ) which will convert the image file text data.
i know the best tool to make this conversion which i have used in past is ABBY FINE READER. you can find more information about it by googling it.
but to make integration to your application you need the SDK ( Software Development Kit ) which will provide you a dll file and through which you can extract the text.
we have worked on highcourt pages which are transferred to searchable form. and store it in databsae with whole text. we have successfully completed the trial project for that. and we have done so many ocr softwares.
hope this will help you
This thread is locked for new responses. Please post your comments and questions as a
If required, refer to the URL of this page in your
Export the page(total aspx page) to excel
Need of interface
Return to Discussion Forum
Post New Message
Is there any expert to solve this?
what is difference between String and string(data type) in c#?
what is a resource file...
Horizontal Scroll Bar for a listview control
Last 7 Days
Awards & Gifts
Articles Rss Feeds
Forum Rss Feeds
Talk to Webmaster Tony John
Copyright © SpiderWorks Technologies Pvt Ltd., Kochi, India