diff --git a/doc/baselines.rst b/doc/baselines.rst index 7569495f0bd047988573b14191e8ef71ef49a4d2..a891a61ae6a1ca10556eec3ba3057d7a21b86b4c 100644 --- a/doc/baselines.rst +++ b/doc/baselines.rst @@ -193,4 +193,52 @@ The ROC curves for the particular experiment can be downloaded from here: ------------ +Frame differences based features (motion analysis) + SVM classifier +======================================================================== + +Detailed description of this PAD pipe-line is given at :ref:`bob.pad.face.resources.face_pad.frame_diff_svm_replayattack`. + +To run this baseline on the `replayattack`_ database, using the ``grandtest`` protocol, execute the following: + +.. code-block:: sh + + $ ./bin/spoof.py frame-diff-svm \ + --database replay --protocol grandtest --groups train dev eval \ + --sub-directory <PATH_TO_STORE_THE_RESULTS> + +.. tip:: + + Similarly to the tip above you can run this baseline in parallel. + +To understand the settings of this baseline PAD experiment you can check the +corresponding configuration file: ``bob/pad/face/config/frame_diff_svm.py`` + +To evaluate the results computing EER, HTER and plotting ROC you can use the +following command: + +.. code-block:: sh + + ./bin/evaluate.py \ + --dev-files <PATH_TO_STORE_THE_RESULTS>/grandtest/scores/scores-dev \ + --eval-files <PATH_TO_STORE_THE_RESULTS>/grandtest/scores/scores-eval \ + --legends "10 features for each window in Frame Differences + SVM classifier + REPLAY-ATTACK database" \ + -F 7 \ + --criterion EER \ + --roc <PATH_TO_STORE_THE_RESULTS>/ROC.pdf + +The EER/HTER errors for `replayattack`_ database are summarized in the Table below: + ++-------------------+----------+----------+ +| Protocol | EER,\% | HTER,\% | ++===================+==========+==========+ +| ``grandtest`` | 11.752 | 13.195 | ++-------------------+----------+----------+ + +The ROC curves for the particular experiment can be downloaded from here: + +:download:`ROC curve <img/ROC_frame_diff_svm_replay_attack.pdf>` + +------------ + + .. include:: links.rst diff --git a/doc/img/ROC_frame_diff_svm_replay_attack.pdf b/doc/img/ROC_frame_diff_svm_replay_attack.pdf new file mode 100644 index 0000000000000000000000000000000000000000..a04d2b6c36a094b8ac1d941c812c8e724c0c083c Binary files /dev/null and b/doc/img/ROC_frame_diff_svm_replay_attack.pdf differ diff --git a/doc/resources.rst b/doc/resources.rst index 7b9d574bc3e99c013c3cac8dc84f8d436745dbec..77edc5e64a898686f09f3ebe99c7abbc7a00b71c 100644 --- a/doc/resources.rst +++ b/doc/resources.rst @@ -42,7 +42,7 @@ The configuration files contain at least the following arguments of the ``spoof. .. _bob.pad.face.resources.face_pad.lbp_svm_replayattack: LBP features of facial region + SVM for REPLAY-ATTACK -====================================================== +================================================================================ .. automodule:: bob.pad.face.config.lbp_svm :members: @@ -54,4 +54,13 @@ Image Quality Measures as features of facial region + SVM for REPLAY-ATTACK ================================================================================ .. automodule:: bob.pad.face.config.qm_svm - :members: \ No newline at end of file + :members: + + +.. _bob.pad.face.resources.face_pad.frame_diff_svm_replayattack: + +Frame differences based features (motion analysis) + SVM for REPLAY-ATTACK +================================================================================ + +.. automodule:: bob.pad.face.config.frame_diff_svm + :members: