Git Product home page Git Product logo

mad-tools's Introduction

MAD Tools

A variety of tools for the S/D-MAD tasks.
All tools are written in Python language.

Differential Morphing Attack Detection

  • Reference paper: Deep Face Representations for Differential Morphing Attack Detection (TIFS 2020)

Image pre-processing

The D-MAD classifier is trained on embeddings extracted with the DNN presented in

You can extract features through the extract_features.py script available in this repo. Follow inside comments for an easy use.
Before, you have to install the following packages:

  • Mxnet (tested version 1.4.0 running on CPU)
  • OpenCV 4.4.0

and other minor packages depending on your original setup (like tqdmm, ...).

Click here to download the ArcFace parameters. For simplicity, put the file in the feature_extraction directory.

Classifier

  • SVM with rbf kernel
  • Machine learning tool: scikit-learn 0.23.2
  • Trained on PMDB dataset; data not balanced (280 genuine, 1108 impostor)
  • Features MUST be subtracted! (probe - reference)
  • Load the classifier file through the pickle package. Example:
import pickle
with open(<path>, 'r') as f:
    classifier = pickle.load(f)
...
classifier.predict()

Digital images

Train dataset Train-Test Images Alpha Couples with EER on MorphDB Model
PMDB Digital-Digital 0.55 Criminal 0.0% link
PMDB Digital-Digital 0.55 Accomplice 0.0% link
PMDB Digital-Digital 0.55 Both 0.0% link
PMDB + MorphDB Digital-Digital 0.55 Both - link

Printed and Scanned images

Train dataset Train-Test Images Alpha Couples with EER on MorphDB Model
PMDB P&S-P&S 0.55 Criminal 0.0% link
PMDB P&S-P&S 0.55 Accomplice 0.0% link
PMDB P&S-P&S 0.55 Both 0.0% link
PMDB + MorphDB P&S-P&S 0.55 Both - link

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.