Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
bob.pad.face
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
14
Issues
14
List
Boards
Labels
Milestones
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
bob
bob.pad.face
Commits
eb69ee60
Commit
eb69ee60
authored
Dec 04, 2017
by
Amir MOHAMMADI
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use bob.extension.rc instead of None
parent
43fddd1b
Pipeline
#14572
passed with stages
in 24 minutes and 59 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
7 deletions
+7
-7
bob/pad/face/database/replay.py
bob/pad/face/database/replay.py
+3
-4
bob/pad/face/database/replay_mobile.py
bob/pad/face/database/replay_mobile.py
+4
-3
No files found.
bob/pad/face/database/replay.py
View file @
eb69ee60
#!/usr/bin/env python2
# -*- coding: utf-8 -*-
# Used in ReplayMobilePadFile class
from
bob.bio.video
import
FrameSelector
,
FrameContainer
from
bob.pad.base.database
import
PadDatabase
from
bob.pad.face.database
import
VideoPadFile
# Used in ReplayPadFile class
from
bob.pad.face.utils
import
frames
,
number_of_frames
from
bob.extension
import
rc
class
ReplayPadFile
(
VideoPadFile
):
...
...
@@ -58,8 +57,8 @@ class ReplayPadDatabase(PadDatabase):
self
,
# grandtest is the default protocol for this database
protocol
=
'grandtest'
,
original_directory
=
None
,
original_extension
=
None
,
original_directory
=
rc
[
'bob.db.replay.directory'
]
,
original_extension
=
'.mov'
,
**
kwargs
):
"""
Parameters
...
...
bob/pad/face/database/replay_mobile.py
View file @
eb69ee60
...
...
@@ -7,6 +7,7 @@ from bob.pad.base.database import PadDatabase
from
bob.pad.face.database
import
VideoPadFile
from
bob.pad.face.utils
import
frames
,
number_of_frames
import
numpy
from
bob.extension
import
rc
# documentation imports
import
bob.bio.video
...
...
@@ -89,8 +90,8 @@ class ReplayMobilePadDatabase(PadDatabase):
self
,
# grandtest is the default protocol for this database
protocol
=
'grandtest'
,
original_directory
=
None
,
original_extension
=
None
,
original_directory
=
rc
[
'bob.db.replaymobile.directory'
]
,
original_extension
=
'.mov'
,
**
kwargs
):
"""
Parameters
...
...
@@ -251,7 +252,7 @@ class ReplayMobilePadDatabase(PadDatabase):
vfilename
=
padfile
.
make_path
(
directory
=
self
.
original_directory
,
extension
=
self
.
original_extension
)
is_not_tablet
=
not
padfile
.
_
f
.
is_tablet
()
is_not_tablet
=
not
padfile
.
f
.
is_tablet
()
for
frame
in
frames
(
vfilename
):
frame
=
numpy
.
rollaxis
(
frame
,
2
,
1
)
if
is_not_tablet
:
...
...
Write
Preview
Markdown
is supported
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