Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
bob
bob.bio.video
Commits
0a0d3c2f
Commit
0a0d3c2f
authored
Jun 07, 2019
by
Amir MOHAMMADI
Browse files
Merge branch 'logging-improve' into 'master'
Improve logging in case of failures in preprocessing See merge request
!39
parents
a04c202c
238158bb
Pipeline
#30806
passed with stages
in 28 minutes and 11 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
bob/bio/video/preprocessor/Wrapper.py
View file @
0a0d3c2f
...
...
@@ -4,9 +4,12 @@
import
bob.bio.base
import
bob.io.base
import
six
import
logging
from
..
import
utils
logger
=
logging
.
getLogger
(
"bob.bio.video"
)
class
Wrapper
(
bob
.
bio
.
base
.
preprocessor
.
Preprocessor
):
"""Wrapper class to run image preprocessing algorithms on video data.
...
...
@@ -116,7 +119,6 @@ class Wrapper(bob.bio.base.preprocessor.Preprocessor):
preprocessed : :py:class:`bob.bio.video.FrameContainer`
A frame container that contains the preprocessed frames.
"""
fc
=
utils
.
FrameContainer
()
for
index
,
frame
,
_
in
frames
:
...
...
@@ -136,6 +138,8 @@ class Wrapper(bob.bio.base.preprocessor.Preprocessor):
quality
=
None
# add image to frame container
fc
.
add
(
index
,
preprocessed
,
quality
)
else
:
logger
.
warning
(
'Processing of frame %s failed.'
,
index
)
if
not
len
(
fc
):
return
None
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment