Commit 6cc9e6a0 authored by Amir MOHAMMADI's avatar Amir MOHAMMADI
Browse files

Merge branch 'gpl' into 'master'

Update readme. Add instructions.

See merge request bob/bob.hobpad2.chapter24!2
parents 55b86202 c768ce75
Pipeline #21551 canceled with stages
in 1 minute and 4 seconds
include README.rst buildout.cfg LICENSE version.txt requirements.txt
include README.rst buildout.cfg COPYING version.txt requirements.txt
recursive-include doc *.py *.rst *.ico *.png
.. vim: set fileencoding=utf-8 :
.. Thu Feb 22 11:30:16 CET 2018
.. image:: https://img.shields.io/badge/docs-stable-yellow.svg
:target: https://www.idiap.ch/software/bob/docs/bob/bob.hobpad2.chapter24/stable/index.html
.. image:: https://img.shields.io/badge/docs-latest-orange.svg
:target: https://www.idiap.ch/software/bob/docs/bob/bob.hobpad2.chapter24/master/index.html
.. image:: https://gitlab.idiap.ch/bob/bob.hobpad2.chapter24/badges/master/build.svg
:target: https://gitlab.idiap.ch/bob/bob.hobpad2.chapter24/commits/master
.. image:: https://gitlab.idiap.ch/bob/bob.hobpad2.chapter24/badges/master/coverage.svg
:target: https://gitlab.idiap.ch/bob/bob.hobpad2.chapter24/commits/master
.. image:: https://img.shields.io/badge/gitlab-project-0000c0.svg
:target: https://gitlab.idiap.ch/bob/bob.hobpad2.chapter24
.. image:: https://img.shields.io/pypi/v/bob.hobpad2.chapter24.svg
:target: https://pypi.python.org/pypi/bob.hobpad2.chapter24
======================================================================
Evaluation Methodologies for Biometric Presentation Attack Detection
......@@ -22,16 +7,54 @@
This package is part of the signal-processing and machine learning toolbox
Bob_. It is a software package to reproduce "Evaluation Methodologies for
Biometric Presentation Attack Detection" chapter of "Handbook of Biometric
Anti- Spoofing: Presentation Attack Detection 2nd Edition"
Anti- Spoofing: Presentation Attack Detection 2nd Edition"::
@incollection{chingovska_evaluation_2018,
series = {Advances in {Computer} {Vision} and {Pattern} {Recognition}},
title = {Evaluation {Methodologies} for {Biometric} {Presentation} {Attack} {Detection}},
copyright = {©2018 Springer-Verlag London},
isbn = {978-1-4471-6523-1 978-1-4471-6524-8},
url = {http://link.springer.com/chapter/10.1007/978-1-4471-6524-8_10},
booktitle = {Handbook of {Biometric} {Anti}-{Spoofing}},
publisher = {Springer London},
author = {Chingovska, Ivana and Mohammadi, Amir and Anjos, André and Marcel, Sébastien},
editor = {Marcel, Sébastien and Nixon, Mark S. and Li, Stan Z.},
year = {2018},
doi = {10.1007/978-1-4471-6524-8_10},
pages = {},
}
Installation
Reproduction
------------
Complete Bob's `installation`_ instructions. Then, to install this package,
run::
The installation instructions are based on conda_ and works on **Linux and
MacOS systems only**. `Install conda`_ before continuing.
Once you have installed conda_, create a conda environment with the following
command and activate it::
$ conda create --name bob.hobpad2.chapter24 --override-channels \
-c https://www.idiap.ch/software/bob/conda -c defaults \
bob.hobpad2.chapter24
$ conda activate bob.hobpad2.chapter24
This will install all the required software to reproduce this book chapter.
Once installed, follow the commands below to generate the plots::
$ conda install bob.hobpad2.chapter24
$ # To generate Figure 4:
$ bob measure gen generic_scores
$ bob measure hist generic_scores/scores-dev -o fig4.a.pdf
$ bob measure det generic_scores/scores-dev -o fig4.b.pdf --lines-at ' ' --no-disp-legend --titles ' '
$ bob measure epc generic_scores/scores-{dev,eval} -o fig4.c.pdf --titles ' ' --no-disp-legend -xl '$\beta$'
$ # To generate Figure 5:
$ bob vulnerability gen vuln_scores
$ bob vulnerability hist vuln_scores/{licit,spoof}/scores-dev -o fig5.a.pdf --no-iapmr-line
$ bob vulnerability hist vuln_scores/{licit,spoof}/scores-dev -o fig5.b.pdf --no-real-data
$ bob vulnerability det vuln_scores/{licit,spoof}/scores-dev -o fig5.c.pdf --fnmr 0.0214 --no-real-data --title ' '
$ bob vulnerability fmr_iapmr vuln_scores/{licit,spoof}/scores-{dev,eval} -o fig5.d.pdf --no-disp-legend --title ' '
$ bob vulnerability epc vuln_scores/{licit,spoof}/scores-{dev,eval} -o fig5.e.pdf --title ' '
$ bob vulnerability epsc vuln_scores/{licit,spoof}/scores-{dev,eval} -o fig5.f.pdf --title ' '
Contact
......@@ -45,3 +68,5 @@ development `mailing list`_.
.. _bob: https://www.idiap.ch/software/bob
.. _installation: https://www.idiap.ch/software/bob/install
.. _mailing list: https://www.idiap.ch/software/bob/discuss
.. _conda: https://conda.io
.. _install conda: https://conda.io/docs/install/quick.html#linux-miniconda-install
from . import script
def get_config():
"""Returns a string containing the configuration information.
"""
"""Returns a string containing the configuration information.
"""
import bob.extension
return bob.extension.get_config(__name__)
import bob.extension
return bob.extension.get_config(__name__)
# gets sphinx autodoc done right - don't remove it
......
#!/usr/bin/env python
# vim: set fileencoding=utf-8 :
"""Prints the version of bob and exits
"""
def main():
"""Main routine, called by the script that gets the configuration of bob.blitz"""
import bob.blitz
print (bob.blitz.get_config())
return 0
......@@ -3,7 +3,3 @@
"""Test Units
"""
def test_version():
from .script import version
assert version.main() == 0
......@@ -21,10 +21,18 @@ requirements:
- python {{ python }}
- setuptools {{ setuptools }}
- bob.extension
- bob.bio.base
- bob.pad.base
run:
- python
- setuptools
# pins all host dependencies to the last version digit / build number, if
# we're building a release (tagged version)
{% if environ.get('CI_COMMIT_TAG') %}
{% for package in resolved_packages('host') %}
- {{ package }}
{% endfor %}
{% endif %}
test:
imports:
......@@ -35,6 +43,17 @@ test:
- sphinx-build -aEb doctest {{ project_dir }}/doc sphinx
- conda inspect linkages -p $PREFIX {{ name }} # [not win]
- conda inspect objects -p $PREFIX {{ name }} # [osx]
- bob measure gen generic_scores
- bob measure hist generic_scores/scores-dev -o fig4.a.pdf
- bob measure det generic_scores/scores-dev -o fig4.b.pdf --lines-at ' ' --no-disp-legend --titles ' '
- bob measure epc generic_scores/scores-{dev,eval} -o fig4.c.pdf --titles ' ' --no-disp-legend -xl '$\beta$'
- bob vulnerability gen vuln_scores
- bob vulnerability hist vuln_scores/{licit,spoof}/scores-dev -o fig5.a.pdf --no-iapmr-line
- bob vulnerability hist vuln_scores/{licit,spoof}/scores-dev -o fig5.b.pdf --no-real-data
- bob vulnerability det vuln_scores/{licit,spoof}/scores-dev -o fig5.c.pdf --fnmr 0.0214 --no-real-data --title ' '
- bob vulnerability fmr_iapmr vuln_scores/{licit,spoof}/scores-{dev,eval} -o fig5.d.pdf --no-disp-legend --title ' '
- bob vulnerability epc vuln_scores/{licit,spoof}/scores-{dev,eval} -o fig5.e.pdf --title ' '
- bob vulnerability epsc vuln_scores/{licit,spoof}/scores-{dev,eval} -o fig5.f.pdf --title ' '
requires:
- bob-devel {{ bob_devel }}.*
- nose
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment