Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
bob
bob.bio.face
Commits
5414395a
Commit
5414395a
authored
Apr 14, 2020
by
Tiago de Freitas Pereira
Browse files
Make Tan&Triggs work as functools
parent
e3711a79
Pipeline
#38939
failed with stage
in 8 minutes and 13 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
bob/bio/face/preprocessor/TanTriggs.py
View file @
5414395a
...
...
@@ -97,8 +97,18 @@ class TanTriggs (Base):
face : 2D :py:class:`numpy.ndarray`
The cropped and photometrically enhanced face.
"""
if
not
isinstance
(
self
.
cropper
,
bob
.
bio
.
face
.
preprocessor
.
FaceCrop
):
self
.
cropper
=
self
.
cropper
()
image
=
self
.
color_channel
(
image
)
if
self
.
cropper
is
not
None
:
image
=
self
.
cropper
.
crop_face
(
image
,
annotations
)
import
numpy
if
numpy
.
all
(
numpy
.
isnan
(
self
.
tan_triggs
(
image
))):
import
ipdb
;
ipdb
.
set_trace
()
pass
image
=
self
.
tan_triggs
(
image
)
return
self
.
data_type
(
image
)
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