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
6773c786
Commit
6773c786
authored
Mar 13, 2018
by
Olegs Nikisins
Browse files
Returning none insted of empty FrCont in preproc Wrapper
parent
a906f9c9
Pipeline
#17634
passed with stage
in 17 minutes and 3 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
bob/bio/video/preprocessor/Wrapper.py
View file @
6773c786
...
...
@@ -136,6 +136,9 @@ class Wrapper(bob.bio.base.preprocessor.Preprocessor):
# add image to frame container
fc
.
add
(
index
,
preprocessed
,
quality
)
if
not
len
(
fc
):
return
None
return
fc
...
...
bob/bio/video/test/test_preprocessor.py
View file @
6773c786
...
...
@@ -77,6 +77,11 @@ def test_missing_annotations():
assert
preprocessed_video
[
0
][
1
]
==
3
assert
[
x
[
0
]
for
x
in
preprocessed_video
]
==
[
'0'
,
'1'
,
'3'
]
annotations
=
{}
preprocessed_video
=
preprocessor
(
video
,
annotations
)
assert
preprocessed_video
is
None
def
test_detect
():
...
...
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