Click here to Skip to main content
15,892,298 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
Hello Everyone..

Am having an image file(.jpg or .bmp) that contains some text,numeric value etc. For the first time i came across this situation to read the contents of the image file. Am not sure, Is it possible to read the contents of the file using MFC or WIN32 C++ or C# ?? If so how can i do this ?Please help me..!!


Thank you all.
Posted

 
Share this answer
 
Comments
Guru_C++ 25-May-12 2:11am    
This link is absolutely what i was looking for http://www.codeproject.com/KB/recipes/OCRwithMODI.aspx.. But when i execute the source code, its giving something Debug assertion failed..
Also, in debug mode, i found that VS2008 creates a breakpoint at the following line in occcont.cpp:ASSERT(IsWindow(pTemp->m_hWnd));

Probably, After googling i found ActiveX control is not registered in ur computer. How do i register ActiveX control in MFC appliction ?

You can if the image file is an EMF file.
Otherwise, you will need to learn about Steganography[^]
 
Share this answer
 
Comments
Guru_C++ 24-May-12 1:00am    
Thank you for replying..Really am in need of the answer.. Sure i will learn about steganography. And, If an image is an EMF file, then how can i read the contents of the image file. Can anyone explain about this..? Waiting for reply ..
«_Superman_» 24-May-12 1:32am    
EMF files are made up of a header and individual records.
Each record is a GDI function.
What you need to look for is a textout function.
You can enumerate EMF records using the function EnumEnhMetaFile - http://msdn.microsoft.com/en-us/library/dd162613(v=vs.85).aspx
Guru_C++ 24-May-12 3:21am    
Previously my image is in .bmp format that contains some individual prices like Rs 1530.98. Using Image online converter, i converted to .emf format. Now how do i identify the header & individuals records in that ?? And also how can i read that price ? Its really a complex task..!! And, When i open the EMF file in paint , it is same as that of .bmp file ..
After some research, finally i got this link: http://www.transym.com/download-sample-source-code.htm[^] . This project reads the data from the image. The above solutions are helpful for the study purpose on image processing ..
 
Share this answer
 

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