This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
The moose likes I/O and Streams and the fly likes Reading text from Image file using OCR Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » I/O and Streams
Bookmark "Reading text from Image file using OCR" Watch "Reading text from Image file using OCR" New topic
Author

Reading text from Image file using OCR

jatan bhavsar
Ranch Hand

Joined: Jul 23, 2008
Posts: 296

Hi,

I am trying to read the jpg file with OCr but it reads only first character. I found its possible to extract the text from the image file so i am trying the same. I really need help.
Althoug i am able to extract the only first character.




I have attached the image for your reference.

Regards
Jatan


[Thumbnail for Test.jpg]

Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42370
    
  64
Aspose is a commercial product, if I'm not mistaken. While there's nothing wrong with asking about it here, you can probably get help faster on their support forums or mailing list.


Ping & DNS - my free Android networking tools app
jatan bhavsar
Ranch Hand

Joined: Jul 23, 2008
Posts: 296

Hi Ulf,

Thank you for quick reply .. Can you give me name some of the free tool for this. I downloaded the trial version and not planning to purchase.

Regards
Jatan
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42370
    
  64
The only free OCR library that I'm aware of which has a Java API and is free is Tesseract. A Google search for the obvious terms may find more.
ram mane
Greenhorn

Joined: Sep 12, 2013
Posts: 27
Ulf Dittmer wrote:The only free OCR library that I'm aware of which has a Java API and is free is Tesseract. A Google search for the obvious terms may find more.

in abov code how can i import all library in my program
ram mane
Greenhorn

Joined: Sep 12, 2013
Posts: 27
Is it possible that read text from an image without using any third party APIs?
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42370
    
  64
in abov code how can i import all library in my program

I don't understand what you're asking; can you rephrase it while also providing more detail?

Is it possible that read text from an image without using any third party APIs?

Sure, you can write a solution yourself. Be aware that OCR is a hard topic, and the subject of ongoing research, so be prepared to spend weeks or months on this.
ram mane
Greenhorn

Joined: Sep 12, 2013
Posts: 27
can any one give me how we can use "ocr " in java or give me any example how we can extract text from image in java.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42370
    
  64
I already mentioned Tesseract and its Java API. If you have a specific question about that, then post the specific question. Be sure to mention what you have done already (code you have written, documentation you have read etc.)
 
 
subject: Reading text from Image file using OCR