Why does the following code crash python? Is there an easier/better way to download an image and convert it to a numpy array?
from pylab import *
from urllib import request
captcha=imread(request.urlopen('http://pastebin.com/etc/CaptchaSecurityImages.php?width=100&height=35&characters=4&b=123'))
Note that this causes the python interpreter to exit rather than just printing a stack trace.
NameError: name 'imread' is not defined.