Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
bob.ip.flandmark
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
bob
bob.ip.flandmark
Commits
ebe8a4d3
Commit
ebe8a4d3
authored
12 years ago
by
André Anjos
Browse files
Options
Downloads
Patches
Plain Diff
Package in near final format
parent
f70e3796
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
buildout.cfg
+6
-1
6 additions, 1 deletion
buildout.cfg
flandmark/__init__.py
+1
-0
1 addition, 0 deletions
flandmark/__init__.py
flandmark/test.py
+42
-0
42 additions, 0 deletions
flandmark/test.py
setup.py
+1
-1
1 addition, 1 deletion
setup.py
test.py
+0
-18
0 additions, 18 deletions
test.py
with
50 additions
and
20 deletions
buildout.cfg
+
6
−
1
View file @
ebe8a4d3
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
; Mon 16 Apr 08:29:18 2012 CEST
; Mon 16 Apr 08:29:18 2012 CEST
[buildout]
[buildout]
parts
=
external python
parts
=
external
tests
python
develop
=
.
develop
=
.
eggs
=
bob
eggs
=
bob
flandmark
flandmark
...
@@ -12,6 +12,11 @@ eggs = bob
...
@@ -12,6 +12,11 @@ eggs = bob
recipe
=
xbob.buildout:external
recipe
=
xbob.buildout:external
egg-directories
=
/idiap/group/torch5spro/nightlies/last/install/linux-x86_64-release/lib
egg-directories
=
/idiap/group/torch5spro/nightlies/last/install/linux-x86_64-release/lib
[tests]
recipe
=
xbob.buildout:nose
eggs
=
${buildout:eggs}
script
=
tests.py
[python]
[python]
recipe
=
zc.recipe.egg
recipe
=
zc.recipe.egg
interpreter
=
python
interpreter
=
python
...
...
This diff is collapsed.
Click to expand it.
flandmark/__init__.py
+
1
−
0
View file @
ebe8a4d3
from
._flandmark
import
*
This diff is collapsed.
Click to expand it.
flandmark/test.py
0 → 100644
+
42
−
0
View file @
ebe8a4d3
#!/usr/bin/env python
# vim: set fileencoding=utf-8 :
# Andre Anjos <andre.anjos@idiap.ch>
# Fri 21 Sep 2012 09:19:39 CEST
"""
Tests for flandmark python bindings
"""
import
os
,
sys
import
unittest
import
bob
import
pkg_resources
from
nose.plugins.skip
import
SkipTest
from
.
import
Localizer
def
F
(
name
,
f
):
"""
Returns the test file on the
"
data
"
subdirectory
"""
return
pkg_resources
.
resource_filename
(
name
,
os
.
path
.
join
(
'
data
'
,
f
))
INPUT_VIDEO
=
F
(
'
bob.io.test
'
,
'
test.mov
'
)
class
FlandmarkTest
(
unittest
.
TestCase
):
"""
Performs various tests on the Flandmark package
"""
def
test01_video
(
self
):
op
=
Localizer
(
"
flandmark/haarcascade_frontalface_alt.xml
"
,
"
flandmark/flandmark_model.dat
"
)
v
=
bob
.
io
.
VideoReader
(
INPUT_VIDEO
)
for
i
,
f
in
enumerate
(
v
):
self
.
assertTrue
(
op
(
bob
.
ip
.
rgb_to_gray
(
f
)))
def
xtest02_broken
(
self
):
op
=
Localizer
(
"
flandmark/haarcascade_frontalface_alt.xml
"
,
"
flandmark/flandmark_model.dat
"
)
for
i
,
f
in
enumerate
(
bob
.
io
.
VideoReader
(
INPUT_VIDEO
)):
self
.
assertTrue
(
op
(
bob
.
ip
.
rgb_to_gray
(
f
)))
This diff is collapsed.
Click to expand it.
setup.py
+
1
−
1
View file @
ebe8a4d3
...
@@ -85,7 +85,7 @@ setup(
...
@@ -85,7 +85,7 @@ setup(
name
=
"
flandmark
"
,
name
=
"
flandmark
"
,
version
=
"
1.0.6
"
,
version
=
"
1.0.6
"
,
ext_modules
=
[
ext_modules
=
[
setup_bob_extension
(
"
_flandmark
"
,
setup_bob_extension
(
"
flandmark.
_flandmark
"
,
[
[
"
flandmark/ext/flandmark_detector.cpp
"
,
"
flandmark/ext/flandmark_detector.cpp
"
,
"
flandmark/ext/liblbp.cpp
"
,
"
flandmark/ext/liblbp.cpp
"
,
...
...
This diff is collapsed.
Click to expand it.
test.py
deleted
100644 → 0
+
0
−
18
View file @
f70e3796
#!/usr/bin/env python
# vim: set fileencoding=utf-8 :
# Andre Anjos <andre.anjos@idiap.ch>
# Thu 20 Sep 2012 17:21:36 CEST
"""
"""
import
sys
import
bob
from
_flandmark
import
Localizer
op
=
Localizer
(
"
flandmark/haarcascade_frontalface_alt.xml
"
,
"
flandmark/flandmark_model.dat
"
)
for
f
in
bob
.
io
.
VideoReader
(
'
/scratch/aanjos/bob/python/bob/io/test/data/test.mov
'
):
print
"
Hello!
"
print
op
(
bob
.
ip
.
rgb_to_gray
(
f
))
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment