module for generating captcha images

I

Irmen de Jong

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,818
Latest member
Brigette36

Latest Threads

Top