Generating a 3D CAPTCHA [pic]
I would like to write a Python script that would generate a 3D CAPTCHA like this one: Which graphics libraries can I use? Source: ocr-research.org.ua Paul There are many approaches. I would personally create the image in Python Imaging Library using ImageDraw 's draw.text, convert to a NumPy array (usint NumPy's asarray ) then render with Matplotlib . (Requires Matplotlib maintenance package ). Full code (in 2.5): import numpy, pylab from PIL import Image, ImageDraw, ImageFont import matplotlib.axes3d as axes3d sz = (50,30) img = Image.new('L', sz, 255) drw = ImageDraw.Draw(img) font =