Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
bob.pad.face
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
13
Issues
13
List
Boards
Labels
Milestones
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
bob
bob.pad.face
Commits
96ade3b4
Commit
96ade3b4
authored
Jul 10, 2018
by
Guillaume HEUSCH
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[preprocessor] removed debugging stuff Li preprocessor
parent
2d1e12b6
Pipeline
#21787
passed with stage
in 35 minutes and 44 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
8 deletions
+4
-8
bob/pad/face/preprocessor/LiPulseExtraction.py
bob/pad/face/preprocessor/LiPulseExtraction.py
+4
-8
No files found.
bob/pad/face/preprocessor/LiPulseExtraction.py
View file @
96ade3b4
...
...
@@ -111,8 +111,7 @@ class LiPulseExtraction(Preprocessor):
for
i
,
frame
in
enumerate
(
video
):
logger
.
debug
(
"Processing frame {}/{}"
.
format
(
counter
,
nb_frames
))
#if self.debug:
if
False
:
if
self
.
debug
:
from
matplotlib
import
pyplot
pyplot
.
imshow
(
numpy
.
rollaxis
(
numpy
.
rollaxis
(
frame
,
2
),
2
))
pyplot
.
show
()
...
...
@@ -144,8 +143,7 @@ class LiPulseExtraction(Preprocessor):
ldms
=
previous_ldms
logger
.
warning
(
"Frame {}: no landmarks detected, using the ones from previous frame"
.
format
(
i
))
#if self.debug:
if
False
:
if
self
.
debug
:
from
matplotlib
import
pyplot
display
=
numpy
.
copy
(
frame
)
for
p
in
ldms
:
...
...
@@ -154,11 +152,9 @@ class LiPulseExtraction(Preprocessor):
pyplot
.
show
()
ldms
=
numpy
.
array
(
ldms
)
#mask_points, mask = kp66_to_mask(frame, ldms, self.indent, self.debug)
mask_points
,
mask
=
kp66_to_mask
(
frame
,
ldms
,
self
.
indent
,
False
)
mask_points
,
mask
=
kp66_to_mask
(
frame
,
ldms
,
self
.
indent
,
self
.
debug
)
#face_color[i] = compute_average_colors_mask(frame, mask, self.debug)
face_color
[
i
]
=
compute_average_colors_mask
(
frame
,
mask
,
False
)
face_color
[
i
]
=
compute_average_colors_mask
(
frame
,
mask
,
self
.
debug
)
logger
.
debug
(
"Face color in frame {} = {}"
.
format
(
i
,
face_color
[
i
]))
previous_ldms
=
ldms
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment