Moves examples to a more logical position

Signed-off-by: Julien Lengrand-Lambert <julien@lengrandlambert.fr>
This commit is contained in:
Julien Lengrand-Lambert
2011-12-05 22:06:00 +01:00
parent dafc526277
commit c8361cfb46
3 changed files with 10 additions and 7 deletions

View File

@@ -1,21 +1,21 @@
<project name="Tippy" default="tests" basedir=".">
<taskdef resource="pyAntTasks.properties"/>
<property name="src.dir" value="tippy"/>
<property name="ex.dir" value="tippy/examples"/>
<property name="ex.dir" value="examples"/>
<property name="tests.dir" value="tippy/tests"/>
<!--Clean Project -->
<!--TODO -->
<!--Compiling sources -->
<target name="compile all">
<py-compile dir="${src.dir}" pythonpath="${src.dir}" optimize="0"/>
</target>
<target name="compile examples">
<py-compile dir="${ex.dir}" pythonpath="${ex.dir}" optimize="0"/>
</target>
<target name="compile tests">
<py-compile dir="${tests.dir}" pythonpath="${tests.dir}" optimize="0"/>
</target>
<!--Run all tests -->
<target name="tests">
<py-test pythonpath="." dir="${src.dir}">
<fileset dir="${src.dir}">
@@ -23,5 +23,8 @@
</fileset>
</py-test>
</target>
<!-- Generate Documentation -->
<!--TODO -->
<!-- Build Executable -->
<!--TODO -->
</project>

View File

@@ -28,7 +28,7 @@ import tippy.display_operations as do
user_input = 0
img_name = "../data/gnu.jpg"
img_name = "data/gnu.jpg"
threshold = 20
connectivity = 8
img = cv.LoadImage(img_name, cv.CV_LOAD_IMAGE_GRAYSCALE)