in reply to ImageMagick image reading
I'd only use perl to grab the image and pass it to some kind of character recognition program. I wouldn't try to write something as difficult as a character recognition program.
Considering that half the time, I can't figure out these captchas on most forums now, it is probably a good thing I don't try to write such a program.