Hi,

I wanted to generate Captcha images(*) from Python and I couldn't find any module that suited my needs so I made one myself.

It only needs PIL. (I used PIL 1.1.6)

It can generate images with a provided background or it can make a random background for you. It needs a truetype font to draw the letters, and outputs jpeg images.

You can download the module from http://www.razorvine.net/download/captcha.py
and see some images it made here: 
http://www.razorvine.net/download/captcha-examples/

I'm planning to improve it a bit still, I don't like the random noise lines.
It should probably draw an angled line such as you see in the wikipedia article.

Hope it's useful for anyone beside myself :)


--irmen


(*) http://en.wikipedia.org/wiki/Captcha
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to