Commit 893f97a3 authored by Tiago de Freitas Pereira's avatar Tiago de Freitas Pereira

Merge branch 'replay-attack' into 'master'

Some fixes to allow vulnerability tests with replay-attack and replay-mobile database

See merge request !86
parents 82b3e313 89b9cc0f
Pipeline #46396 passed with stages
in 42 minutes and 52 seconds
......@@ -7,18 +7,14 @@ from bob.extension import rc
replay_attack_directory = rc["bob.db.replay.directory"]
replay_licit = DatabaseConnector(
# Licit
database = DatabaseConnector(
ReplayBioDatabase(
original_directory=replay_attack_directory,
original_extension=".mov",
protocol="grandtest-licit",
)
),
annotation_type="bounding-box",
fixed_positions=None,
)
replay_spoof = DatabaseConnector(
ReplayBioDatabase(
original_directory=replay_attack_directory,
original_extension=".mov",
protocol="grandtest-spoof",
)
)
#!/usr/bin/env python
from bob.bio.face.database import ReplayBioDatabase
from bob.bio.base.pipelines.vanilla_biometrics import DatabaseConnector
from bob.extension import rc
replay_attack_directory = rc["bob.db.replay.directory"]
database = DatabaseConnector(
ReplayBioDatabase(
original_directory=replay_attack_directory,
original_extension=".mov",
protocol="grandtest-spoof",
),
annotation_type="bounding-box",
fixed_positions=None,
# Only compare with spoofs from the same target identity
allow_scoring_with_all_biometric_references=False,
)
......@@ -7,18 +7,12 @@ from bob.extension import rc
replay_mobile_directory = rc["bob.db.replay_mobile.directory"]
replaymobile_licit = DatabaseConnector(
database = DatabaseConnector(
ReplayMobileBioDatabase(
original_directory=replay_mobile_directory,
original_extension=".mov",
protocol="grandtest-licit",
)
)
replaymobile_spoof = DatabaseConnector(
ReplayMobileBioDatabase(
original_directory=replay_mobile_directory,
original_extension=".mov",
protocol="grandtest-spoof",
)
),
annotation_type="bounding-box",
fixed_positions=None,
)
#!/usr/bin/env python
from bob.bio.face.database import ReplayMobileBioDatabase
from bob.bio.base.pipelines.vanilla_biometrics import DatabaseConnector
from bob.extension import rc
replay_mobile_directory = rc["bob.db.replay_mobile.directory"]
database = DatabaseConnector(
ReplayMobileBioDatabase(
original_directory=replay_mobile_directory,
original_extension=".mov",
protocol="grandtest-spoof",
),
annotation_type="bounding-box",
fixed_positions=None,
# Only compare with spoofs from the same target identity
allow_scoring_with_all_biometric_references=False,
)
This diff is collapsed.
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