Skip to content
Snippets Groups Projects
Commit abcf3332 authored by David GEISSBUHLER's avatar David GEISSBUHLER
Browse files

Updated documentation

parent 0e2016cd
No related branches found
No related tags found
1 merge request!14MIFS database added
Pipeline #
#!/usr/bin/env python
"""`MIFS`_ is a face makeup spoofing database adapted for face PAD experiments.
Database assembled from a dataset consisting of 107 makeup-transformations taken
from random YouTube makeup video tutorials, adapted in this package for face-PAD
experiments. The public version of the database contains 107 such transformations
with each time two images of a subject before makeup, two images of the same
subject after makeup and two images of the target identity. For this package, a
subset of 104 makeup transformations is selected, the target identities images
discarded and the remaining images randomly distributed in three sets. More
information can be found in the reference [CDSR17]_.
You can download the raw data of the `MIFS`_ database by following
the link.
.. include:: links.rst
"""
from bob.pad.face.database.mifs import MIFSPadDatabase from bob.pad.face.database.mifs import MIFSPadDatabase
......
#!/usr/bin/env python #!/usr/bin/env python
"""`MIFS`_ is a database for face PAD experiments using make-up.
"""`MIFS`_ is a face makeup spoofing database adapted for face PAD experiments.
Database assembled from a dataset consisting of 107 makeup-transformations taken
from random YouTube makeup video tutorials, adapted in this package for face-PAD
experiments. The public version of the database contains 107 such transformations
with each time two images of a subject before makeup, two images of the same
subject after makeup and two images of the target identity. For this package, a
subset of 104 makeup transformations is selected, the target identities images
discarded and the remaining images randomly distributed in three sets. More
information can be found in the reference [CDSR17]_.
You can download the raw data of the `MIFS`_ database by following
the link.
.. include:: links.rst
""" """
from bob.pad.face.database import MIFSPadDatabase from bob.pad.face.database import MIFSPadDatabase
......
#!/usr/bin/env python2 #!/usr/bin/env python2
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
#!/usr/bin/env python
#============================================================================== #==============================================================================
...@@ -25,7 +26,26 @@ class MIFSPadFile(PadFile): ...@@ -25,7 +26,26 @@ class MIFSPadFile(PadFile):
#========================================================================== #==========================================================================
def load(self, directory=None, extension=None): def load(self, directory=None, extension=None):
#path = self.make_path(directory, extension) """
Overridden version of the load method defined in the ``PadFile``.
**Parameters:**
``directory`` : :py:class:`str`
String containing the path to the MIFS database.
Default: None
``extension`` : :py:class:`str`
Extension of the video files in the MIFS database.
Default: None
**Returns:**
``video_data`` : FrameContainer
Video data stored in the FrameContainer, see ``bob.bio.video.utils.FrameContainer``
for further details.
"""
path = self.make_path(directory=directory, extension=extension) # path to the file path = self.make_path(directory=directory, extension=extension) # path to the file
frame_selector = bob.bio.video.FrameSelector(selection_style = 'all') # this frame_selector will select all frames from the video file frame_selector = bob.bio.video.FrameSelector(selection_style = 'all') # this frame_selector will select all frames from the video file
......
...@@ -37,6 +37,12 @@ Aggregated Database ...@@ -37,6 +37,12 @@ Aggregated Database
.. autoclass:: bob.pad.face.database.aggregated_db.AggregatedDbPadFile .. autoclass:: bob.pad.face.database.aggregated_db.AggregatedDbPadFile
.. autoclass:: bob.pad.face.database.aggregated_db.AggregatedDbPadDatabase .. autoclass:: bob.pad.face.database.aggregated_db.AggregatedDbPadDatabase
MIFS Database
========================
.. autoclass:: bob.pad.face.database.mifs.MIFSPadFile
.. autoclass:: bob.pad.face.database.mifs.MIFSPadDatabase
Pre-processors Pre-processors
------------------------------ ------------------------------
......
...@@ -12,4 +12,5 @@ ...@@ -12,4 +12,5 @@
.. _replayattack: https://www.idiap.ch/dataset/replayattack .. _replayattack: https://www.idiap.ch/dataset/replayattack
.. _replay-mobile: https://www.idiap.ch/dataset/replay-mobile .. _replay-mobile: https://www.idiap.ch/dataset/replay-mobile
.. _dependencies: https://gitlab.idiap.ch/bob/bob/wikis/Dependencies .. _dependencies: https://gitlab.idiap.ch/bob/bob/wikis/Dependencies
.. _MSU MFSD: http://biometrics.cse.msu.edu/Publications/Databases/MSUMobileFaceSpoofing/index.htm .. _MSU MFSD: http://biometrics.cse.msu.edu/Publications/Databases/MSUMobileFaceSpoofing/index.htm
\ No newline at end of file .. _MIFS: http://www.antitza.com/makeup-datasets.html
...@@ -15,3 +15,6 @@ References ...@@ -15,3 +15,6 @@ References
.. [AM11] *A. Anjos and S. Marcel*, **Counter-measures to photo attacks in face recognition: A public database and a baseline**, .. [AM11] *A. Anjos and S. Marcel*, **Counter-measures to photo attacks in face recognition: A public database and a baseline**,
in: 2011 International Joint Conference on Biometrics (IJCB), Washington, DC, 2011, pp. 1-7. in: 2011 International Joint Conference on Biometrics (IJCB), Washington, DC, 2011, pp. 1-7.
.. [CDSR17] *C. Chen, A. Dantcheva, T. Swearingen, A. Ross, "Spoofing Faces Using Makeup: An Investigative Study,"
in: Proc. of 3rd IEEE International Conference on Identity, Security and Behavior Analysis (ISBA), (New Delhi, India), February 2017.
...@@ -60,6 +60,12 @@ Aggregated Database ...@@ -60,6 +60,12 @@ Aggregated Database
.. automodule:: bob.pad.face.config.aggregated_db .. automodule:: bob.pad.face.config.aggregated_db
:members: :members:
MIFS Database
================================================================================
.. automodule:: bob.pad.face.config.mifs
:members:
--------------------------------- ---------------------------------
...@@ -129,6 +135,3 @@ Frame differences based features (motion analysis) + SVM for Aggregated Database ...@@ -129,6 +135,3 @@ Frame differences based features (motion analysis) + SVM for Aggregated Database
.. automodule:: bob.pad.face.config.frame_diff_svm_aggregated_db .. automodule:: bob.pad.face.config.frame_diff_svm_aggregated_db
:members: :members:
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment