How to extract text from this below images ?

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
shahparth1
Posts: 3
Joined: 2011-06-16T02:36:22-07:00
Authentication code: 8675308

How to extract text from this below images ?

Post by shahparth1 »

Dear All,

How can i extract text from the below images:

The Images are located on the below link:

http://careeronlinetips.blogspot.com/20 ... -post.html

Please tell me.

As I am new in this area, please provide me guidance and suggestions.

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

Re: How to extract text from this below images ?

Post by fmw42 »

Imagemagick is an image to image processor, not an image to text character processor. Therefore, Imagemagick does not have any function that will recognize text characters within an image. All it can do is automatically trim the image to the bounding rectangle about the text and output that image.

convert inputimage -fuzz XX% -trim +repage outputimage

where XX is some percent dissimilarity to the color in the corners of the image, so that if the background is not a pure color it can still get to the bounding rectangle.

If I misunderstand your problem/question, then please clarify.
User avatar
glennrp
Posts: 1147
Joined: 2006-04-01T08:16:32-07:00
Location: Maryland 39.26.30N 76.16.01W

Re: How to extract text from this below images ?

Post by glennrp »

Your question is about optical character recognition
which is not an ImageMagick function.
There's lots of info about Captcha and captcha solvers at
http://en.wikipedia.org/wiki/CAPTCHA
shahparth1
Posts: 3
Joined: 2011-06-16T02:36:22-07:00
Authentication code: 8675308

Re: How to extract text from this below images ?

Post by shahparth1 »

Dear,

what I want is, first to make the image more clear, and also I need Black color fonts not (any other color fonts).

So, First I need to use convert command and to make image more clearer.

For this what I need to do ?

and do you know any good OCR ?

Thanks in advance brother.
shahparth1
Posts: 3
Joined: 2011-06-16T02:36:22-07:00
Authentication code: 8675308

Re: How to extract text from this below images ?

Post by shahparth1 »

Dear,

what I want is, first to make the image more clear, and also I need Black color fonts not (any other color fonts).

So, First I need to use convert command and to make image more clearer.

For this what I need to do ?

and do you know any good OCR ?

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

Re: How to extract text from this below images ?

Post by fmw42 »

what I want is, first to make the image more clear, and also I need Black color fonts not (any other color fonts).
convert inputimage -fuzz XX% -fill white -opaque white -fill black +opaque white resultimage

where XX% is some percent different from white to allow for colors around the border of the letters to not be exactly the same as the letters due to antialising.

see
http://www.imagemagick.org/Usage/color_basics/#replace
http://www.imagemagick.org/script/comma ... s.php#fuzz
http://www.imagemagick.org/script/comma ... php#opaque
Post Reply