File: simple_example.py

package info (click to toggle)
pycaptcha 0.4-1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 1,224 kB
  • sloc: python: 699; makefile: 8; sh: 7
file content (14 lines) | stat: -rwxr-xr-x 373 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/usr/bin/env python
#
# A very simple example that creates a random image from the
# PseudoGimpy CAPTCHA, saves and shows it, and prints the list
# of solutions. Normally you would call testSolutions rather
# than reading this list yourself.
#
from Captcha.Visual.Tests import PseudoGimpy

g = PseudoGimpy()
i = g.render()
i.save("output.png")
i.show()
print g.solutions