Click here to Skip to main content
15,885,985 members
Please Sign up or sign in to vote.
1.00/5 (3 votes)
See more:

My project is to extract text from jpeg images. I dont know how to access pixels of the image in C++ or in java

Posted
Updated 25-Aug-21 13:44pm

My project is to extract text from jpeg images.

 

I am afraid that does make sense. Are you attempting to read the binary data that makes up the image file? 

 
Share this answer
 
Comments
susielau 29-Mar-11 2:29am    
I want the solution also.
To read a JPEG image, it is recommended that you use an appropriate library.
It's not easy just with self-written C ++ code.

There are different options depending on the compiler and operating system.
Unfortunately the information is missing what exactly is needed.

A JPEG reference implementation can be found here:
Reference Sources – JPEG Reference[^]

On Debian based systems you can install libjpeg and headers:

sudo apt-get install libjpeg-dev

On Windows you can use GDI+ to read File to Bitmap:
Bitmap::FromFile (gdiplusheaders.h) - Win32 apps | Microsoft Docs[^]
 
Share this answer
 
Comments
Dave Kreskowiak 25-Aug-21 21:07pm    
Look at the date on the post before answering. This was asked 12 years ago. I seriously doubt they're still looking for a solution.
merano99 26-Aug-21 11:04am    
Yes, I saw that. But also: Updated 15 hours ago.
And since there was no answer, I decided to suggest something to solve that.

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