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.pad.face
Commits
78bbe93b
Commit
78bbe93b
authored
Mar 05, 2018
by
Olegs NIKISINS
Browse files
Added a FrameSelector to the load() in Aggregated Db HLDI
parent
c0a638f1
Pipeline
#17359
passed with stage
in 24 minutes and 3 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
bob/pad/face/database/aggregated_db.py
View file @
78bbe93b
...
...
@@ -187,7 +187,8 @@ class AggregatedDbPadFile(VideoPadFile):
return
file_path
# =========================================================================
def
load
(
self
,
directory
=
None
,
extension
=
'.mov'
):
def
load
(
self
,
directory
=
None
,
extension
=
'.mov'
,
frame_selector
=
FrameSelector
(
selection_style
=
'all'
)):
"""
Overridden version of the load method defined in the ``VideoPadFile``.
...
...
@@ -252,9 +253,6 @@ class AggregatedDbPadFile(VideoPadFile):
if
isinstance
(
db_pad_file
,
bob
.
bio
.
video
.
database
.
mobio
.
MobioBioFile
):
frame_selector
=
FrameSelector
(
selection_style
=
'all'
)
# select all frames of the file
video_data
=
db_pad_file
.
load
(
directory
=
directory
,
extension
=
'.mp4'
,
...
...
@@ -263,7 +261,9 @@ class AggregatedDbPadFile(VideoPadFile):
else
:
video_data
=
db_pad_file
.
load
(
directory
=
directory
,
extension
=
extension
)
directory
=
directory
,
extension
=
extension
,
frame_selector
=
frame_selector
)
return
video_data
# video data
...
...
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