By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
464,737 Members | 1,335 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 464,737 IT Pros & Developers. It's quick & easy.

module for generating captcha images

P: n/a


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
and see some images it made here:

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 :)
Aug 3 '08 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.