Giter VIP home page Giter VIP logo

face-liveness-detection's Introduction

Face Liveness Detection

alt text


Description

A deep-learning pipeline capable of spotting fake vs legitimate faces and performing anti-face spoofing in face recognition systems. It is built with the help of Keras, Tensorflow, and OpenCV. A sample dataset is uploaded in the sample_dataset_folder.

Method

The problem of detecting fake faces vs real/legitimate faces is treated as a binary classification task. Basically, given an input image, we’ll train a Convolutional Neural Network capable of distinguishing real faces from fake/spoofed faces. There are 4 main steps involved in the task:

  1. Build the image dataset itself.
  2. Implement a CNN capable of performing liveness detector(Livenessnet).
  3. Train the liveness detector network.
  4. Create a Python + OpenCV script capable of taking our trained liveness detector model and apply it to real-time video.
  5. Create a webplatform to access the liveness detection algorithm in an interactive manner.

Contents of this repository

  1. sample_liveness_data : contains the sample dataset.
  2. Face Liveness Detection -Saketh.pptx : A couple of slides that will give you information on th project and our motivation.
  3. demo.py : Our demonstration script will fire up your webcam to grab frames to conduct face liveness detection in real-time.
  4. deploy.prototxt : Support file for pretrained face detector.
  5. le.pickle : Our class label encoder.
  6. liveness.model : The liveness model file.
  7. livenessnet.py : The python file containing the model.
  8. res10_300x300_ssd_iter_140000.caffemodel: Pretrained face detector.
  9. train_liveness.py: The python script to train the model.

Working flow

alt text

Further work

  1. Gathering data having a larger set of ethnicity and different types of fake/spoofed photos.
  2. Adding more heuristics to team up with deep-learning.

face-liveness-detection's People

Contributors

sakethbachu avatar

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.