Page 1 of 1

How to extract text from this below images ?

Posted: 2011-06-16T21:39:10-07:00
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.

Re: How to extract text from this below images ?

Posted: 2011-06-16T21:53:38-07:00
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.

Re: How to extract text from this below images ?

Posted: 2011-06-17T05:22:10-07:00
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

Re: How to extract text from this below images ?

Posted: 2011-06-17T22:08:43-07:00
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.

Re: How to extract text from this below images ?

Posted: 2011-06-17T22:14:19-07:00
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.

Re: How to extract text from this below images ?

Posted: 2011-06-18T10:14:20-07:00
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