view data_generation/transformations/pycaptcha/simple_example.py @ 647:47af8a002530 tip

changed Theano to ift6266 and remove numpy as we do not use code from numpy in this repository
author Razvan Pascanu <r.pascanu@gmail.com>
date Wed, 17 Oct 2012 09:26:14 -0400
parents 1f5937e9e530
children
line wrap: on
line source

#!/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, AngryGimpy
import numpy
#from numpy import *

#g = AngryGimpy()
#i = g.render()
#a = numpy.asarray(i)
#b = numpy.zeros((2, 2), numpy.int8)
#c = a == b
#print c
#i.save("output.png")
#i.show()
#print a
#print g.solutions