replay.py 612 Bytes
Newer Older
1 2 3
#!/usr/bin/env python

from bob.bio.face.database import ReplayBioDatabase
4 5
from bob.bio.base.pipelines.vanilla_biometrics import DatabaseConnector
from bob.extension import rc
6 7


8 9 10 11 12 13 14 15
replay_attack_directory = rc["bob.db.replay.directory"]

replay_licit = DatabaseConnector(
    ReplayBioDatabase(
        original_directory=replay_attack_directory,
        original_extension=".mov",
        protocol="grandtest-licit",
    )
16 17
)

18 19 20 21 22 23
replay_spoof = DatabaseConnector(
    ReplayBioDatabase(
        original_directory=replay_attack_directory,
        original_extension=".mov",
        protocol="grandtest-spoof",
    )
24
)