Java code to check if a text is present in an image

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
nayankankaria
Posts: 3
Joined: 2016-05-26T22:17:03-07:00
Authentication code: 1151

Java code to check if a text is present in an image

Post by nayankankaria »

Hi All,

Can anyone please help know if I can check if some text is available in an image. I want this to be written in Java.

-Nayan
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Java code to check if a text is present in an image

Post by fmw42 »

Imagemagick is a raster processor. I think you need to do OCR, which is not part of Imagemagick. If I misunderstand your question, please provide more details. Also your IM version and platform. If Java is needed, then you would need to use one of the Java APIs. See http://www.imagemagick.org/script/sitem ... interfaces
nayankankaria
Posts: 3
Joined: 2016-05-26T22:17:03-07:00
Authentication code: 1151

Re: Java code to check if a text is present in an image

Post by nayankankaria »

Thanks for the reply fmw42. Yes you said it right, I want to implement OCR in java. Can you please help.

-Nayan
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Java code to check if a text is present in an image

Post by fmw42 »

Sorry, IM does not do OCR and I have no experience with OCR tools. Look into Tesseract.
nayankankaria
Posts: 3
Joined: 2016-05-26T22:17:03-07:00
Authentication code: 1151

Re: Java code to check if a text is present in an image

Post by nayankankaria »

What is IM you are referring to ?

-Nayan
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Java code to check if a text is present in an image

Post by snibgo »

IM = ImageMagick.
snibgo's IM pages: im.snibgo.com
Post Reply