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

1#!/usr/bin/env python 

2# vim: set fileencoding=utf-8 : 

3# Yannick Dayer <yannick.dayer@idiap.ch> 

4 

5"""Replay-mobile CSV database interface configuration 

6 

7The Replay-Mobile Database for face spoofing consists of video clips of 

8photo and video attack attempts under different lighting conditions. 

9 

10The vulnerability analysis pipeline uses single frames extracted from the 

11videos to be accepted by most face recognition systems. 

12 

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

14configuration: 

15 

16 $ bob bio pipeline simple -v --write-metadata-scores replaymobile-img inception-resnetv2-msceleb 

17 

18 $ bob bio pipeline simple -v --write-metadata-scores my_config/protocol.py replaymobile-img inception-resnetv2-msceleb 

19""" 

20 

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

22 

23default_protocol = "grandtest" 

24 

25if "protocol" not in locals(): 

26 protocol = default_protocol 

27 

28database = ReplayMobileBioDatabase( 

29 protocol=protocol, 

30)