replaymobile.py 1012 Bytes
Newer Older
1
2
3
4
#!/usr/bin/env python
# vim: set fileencoding=utf-8 :
# Yannick Dayer <yannick.dayer@idiap.ch>

5
6
"""Replay-mobile CSV database interface configuration

7
8
The Replay-Mobile Database for face spoofing consists of video clips of
photo and video attack attempts under different lighting conditions.
9
10
11
12

The vulnerability analysis pipeline uses single frames extracted from the
videos to be accepted by most face recognition systems.

13
14
Feed this file (defined as resource: ``replaymobile-img``) to ``bob bio pipelines`` as
configuration:
15

16
    $ bob bio pipelines vanilla-biometrics -v --write-metadata-scores replaymobile-img inception-resnetv2-msceleb
17

18
    $ bob bio pipelines vanilla-biometrics -v --write-metadata-scores my_config/protocol.py replaymobile-img inception-resnetv2-msceleb
19
20
"""

21
from bob.bio.face.database.replaymobile import ReplayMobileBioDatabase
22
23

default_protocol = "grandtest"
24

Yannick DAYER's avatar
[black]    
Yannick DAYER committed
25
if "protocol" not in locals():
26
27
    protocol = default_protocol

28
database = ReplayMobileBioDatabase(
29
    protocol=protocol,
30
)