module for generating captcha images

Discussion in 'Python' started by Irmen de Jong, Aug 3, 2008.

  1. 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
    Irmen de Jong, Aug 3, 2008
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. prasad

    Captcha Images

    prasad, Apr 27, 2005, in forum: ASP .Net
    Replies:
    1
    Views:
    566
    Ray Cassick \(Home\)
    Apr 28, 2005
  2. Krishna Kumar

    Capturing Text from CAPTCHA Images

    Krishna Kumar, Aug 4, 2005, in forum: ASP .Net
    Replies:
    6
    Views:
    3,946
    Kevin Spencer
    Aug 5, 2005
  3. Varangian

    Captcha images!

    Varangian, Oct 3, 2006, in forum: ASP .Net
    Replies:
    2
    Views:
    311
    Varangian
    Oct 3, 2006
  4. sur
    Replies:
    0
    Views:
    188
  5. Jai
    Replies:
    8
    Views:
    99
    Denis McMahon
    Dec 18, 2013
Loading...

Share This Page