Coverage for src/bob/bio/face/config/database/replaymobile.py: 100%
5 statements
« prev ^ index » next coverage.py v7.6.0, created at 2024-07-13 00:04 +0200
« prev ^ index » next coverage.py v7.6.0, created at 2024-07-13 00:04 +0200
1#!/usr/bin/env python
2# vim: set fileencoding=utf-8 :
3# Yannick Dayer <yannick.dayer@idiap.ch>
5"""Replay-mobile CSV database interface configuration
7The Replay-Mobile Database for face spoofing consists of video clips of
8photo and video attack attempts under different lighting conditions.
10The vulnerability analysis pipeline uses single frames extracted from the
11videos to be accepted by most face recognition systems.
13Feed this file (defined as resource: ``replaymobile-img``) to ``bob bio pipelines`` as
14configuration:
16 $ bob bio pipeline simple -v --write-metadata-scores replaymobile-img inception-resnetv2-msceleb
18 $ bob bio pipeline simple -v --write-metadata-scores my_config/protocol.py replaymobile-img inception-resnetv2-msceleb
19"""
21from bob.bio.face.database.replaymobile import ReplayMobileBioDatabase
23default_protocol = "grandtest"
25if "protocol" not in locals():
26 protocol = default_protocol
28database = ReplayMobileBioDatabase(
29 protocol=protocol,
30)