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.pad.face
Commits
fde2934f
Commit
fde2934f
authored
Jan 28, 2019
by
Guillaume HEUSCH
Browse files
[database] removed unnecessary stuff while loading data
parent
0468a0fa
Pipeline
#26369
passed with stage
in 17 minutes and 37 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
bob/pad/face/database/casiasurf.py
View file @
fde2934f
...
...
@@ -66,23 +66,11 @@ class CasiaSurfPadFile(VideoPadFile):
Returns
-------
dict:
"video" data (i.e. one frame)
for multiple streams stored in the dictionary.
The structure of the dictionary: ``data={"stream1_name" :
FrameContainer1
, "stream2_name" :
...
}``
Names of the streams are defined in ``self.stream_type``.
image data
for multiple streams stored in the dictionary.
The structure of the dictionary: ``data={"stream1_name" :
numpy array
, "stream2_name" :
numpy array
}``
Names of the streams are defined in ``self.stream_type``.
"""
# get the dict of numpy array
data
=
self
.
s
.
load
(
directory
,
extension
,
modality
=
self
.
stream_type
)
# convert that to dict of FrameContainer
data_to_return
=
{}
for
k
in
data
.
keys
():
frame_container
=
FrameContainer
()
for
idx
,
item
in
enumerate
(
data
[
k
]):
frame_container
.
add
(
idx
,
item
)
# add frame to FrameContainer
data_to_return
[
k
]
=
frame_container
return
data_to_return
return
self
.
s
.
load
(
directory
,
extension
,
modality
=
self
.
stream_type
)
class
CasiaSurfPadDatabase
(
PadDatabase
):
...
...
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