Mercurial > ift6266
comparison data_generation/transformations/pycaptcha/simple_example.py @ 167:1f5937e9e530
More moves - transformations into data_generation, added "deep" folder
author | Dumitru Erhan <dumitru.erhan@gmail.com> |
---|---|
date | Fri, 26 Feb 2010 14:15:38 -0500 |
parents | pycaptcha/simple_example.py@4775b4195b4b |
children |
comparison
equal
deleted
inserted
replaced
166:17ae5a1a4dd1 | 167:1f5937e9e530 |
---|---|
1 #!/usr/bin/env python | |
2 # | |
3 # A very simple example that creates a random image from the | |
4 # PseudoGimpy CAPTCHA, saves and shows it, and prints the list | |
5 # of solutions. Normally you would call testSolutions rather | |
6 # than reading this list yourself. | |
7 # | |
8 from Captcha.Visual.Tests import PseudoGimpy, AngryGimpy | |
9 import numpy | |
10 #from numpy import * | |
11 | |
12 #g = AngryGimpy() | |
13 #i = g.render() | |
14 #a = numpy.asarray(i) | |
15 #b = numpy.zeros((2, 2), numpy.int8) | |
16 #c = a == b | |
17 #print c | |
18 #i.save("output.png") | |
19 #i.show() | |
20 #print a | |
21 #print g.solutions |