Code Monkey home page Code Monkey logo

fas_project's Introduction

Face Anti Spoofing Project

Challenge-Response based protocol for human verification, which can be applied in e-KYC or any auto verification system.

The challenges include 2D head pose, random times of eye blinks, mouth opening (TODO), etc.

Description

After WebRTC connection between server and client successfully formed, there are challenge commands appear in the webcam asking client to attempt to fulfill. After a certain number of challenges, the code will decide if the client pass the liveness test.

There are parameters to constrain or relax the verification challenge.

Technical Specification:

  1. Python >= 3.10: pip install -r requirements.txt

  2. MongoDB server, including pymongo (MongoDB Python Client)

The project mainly relied on facial processing techniques of MediaPipe (via its secondary library FaceAnalyzer) including:

  • Face mesh detection (& drawing)
  • Eye Blink, Mouth Opening & Head Pose calculations
  • etc.

Running Instruction:

  • For simple test of challenge-response via direct Webcam, run face_anti_spoofing.py: python face_anti_spoofing.py

  • For Streamlit WebRTC server, run app.py: streamlit run app.py

fas_project's People

Contributors

daniel-dng avatar

Watchers

 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.