Skip to content
GitLab
Menu
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
7025d572
Commit
7025d572
authored
Mar 01, 2018
by
Olegs Nikisins
Browse files
Fixed the typo
parent
ae32f073
Pipeline
#17303
passed with stage
in 22 minutes and 59 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
bob/bio/video/preprocessor/Wrapper.py
View file @
7025d572
...
...
@@ -85,7 +85,7 @@ class Wrapper(bob.bio.base.preprocessor.Preprocessor):
self
.
quality_function
=
quality_function
self
.
compressed_io
=
compressed_io
sel
s
.
quality_assessment_function
=
quality_assessment_function
sel
f
.
quality_assessment_function
=
quality_assessment_function
def
_check_data
(
self
,
frames
):
"""Checks if the given video is in the desired format."""
...
...
@@ -121,6 +121,8 @@ class Wrapper(bob.bio.base.preprocessor.Preprocessor):
annots
=
None
fc
=
utils
.
FrameContainer
()
quality_index
=
0
for
index
,
frame
,
_
in
frames
:
# if annotations are given, we take them
if
annotations
is
not
None
:
annots
=
annotations
[
index
]
...
...
@@ -140,7 +142,8 @@ class Wrapper(bob.bio.base.preprocessor.Preprocessor):
if
self
.
quality_assessment_function
(
quality
):
#quality satisfies our criteria
fc
.
add
(
index
,
preprocessed
,
quality
)
fc
.
add
(
quality_index
,
preprocessed
)
# no need to add quality here because we already addressed it
quality_index
+=
1
else
:
fc
.
add
(
index
,
preprocessed
,
quality
)
...
...
Write
Preview
Supports
Markdown
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