changeset 171:72eee6a9f43f

making the data_generation folder (and subdirs) an importable module
author Dumitru Erhan <dumitru.erhan@gmail.com>
date Fri, 26 Feb 2010 15:25:01 -0500
parents 89a725d332ae
children 4d3d3627df3e
files data_generation/__init__.py data_generation/pipeline/pipeline.py data_generation/transformations/__init__.py data_generation/transformations/pycaptcha/__init__.py
diffstat 3 files changed, 9 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/data_generation/pipeline/pipeline.py	Fri Feb 26 14:28:48 2010 -0500
+++ b/data_generation/pipeline/pipeline.py	Fri Feb 26 15:25:01 2010 -0500
@@ -80,6 +80,8 @@
     import pylab
     pylab.ion()
 
+from ift6266.data_generation.transformations import *
+
 from PoivreSel import PoivreSel
 from thick import Thick
 from BruitGauss import BruitGauss
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/data_generation/transformations/__init__.py	Fri Feb 26 15:25:01 2010 -0500
@@ -0,0 +1,6 @@
+from pycaptcha import Facade
+
+__all__ = ['PoivreSel','thick','BruitGauss','DistorsionGauss','PermutPixel',\
+         'gimp_script','Rature','contrast','local_elastic_distortions', \
+        'slant','Occlusion','add_background_image','affine_transform',\
+        'ttf2jpg','Facade']
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/data_generation/transformations/pycaptcha/__init__.py	Fri Feb 26 15:25:01 2010 -0500
@@ -0,0 +1,1 @@
+__all__ = ['Facade','Captcha']