mirror of
https://github.com/jlengrand/Tippy.git
synced 2026-03-10 08:51:16 +00:00
Moves examples to a more logical position
Signed-off-by: Julien Lengrand-Lambert <julien@lengrandlambert.fr>
This commit is contained in:
15
build.xml
15
build.xml
@@ -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>
|
||||
@@ -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)
|
||||
Reference in New Issue
Block a user