Giter VIP home page Giter VIP logo

python-ekyc's Introduction

python eKYC

Overview

The main goal of this project is to check whether the given image is a real or fake face (liveness) and compare between 2 faces which is expected to have a high of accuracy and light weight. This repo is inspired by Silent Face Anti Spoofing and uses some of the file and code in it, but we use our own custom model.

Pre-processing

  • Automatically align facial landmarks before feeding them to the model for testing. auto align face landmark

Result

  • Output after model testing, returns "Real" or "Fake" with a confidence score. auto align face landmark

Installation

Conda
conda env create -f environment.yml

Activate venv:

conda activate python-ekyc
Python

Tested on python 3.8

pip install -r requirements.txt

Usage

# Liveness Detection

Place your image in sample folder.

Command to run:

python main.py --filename suzuka-nakamoto.jpg

Output:

Face detected
Image 'suzuka-nakamoto.jpg' is Real Face.
Score: 1.39.
Blur score: 345.25
Elapsed time 2.80 s

Todos:

  • Auto rotate image
  • Align face
  • Detect spoof image/face
  • Compare between 2 faces

Limitations

  • The images provided must have a 3:4 (w:h) ratio.
  • If the face is rotated, e.g 90 degrees, the depiction of facial landmarks is invalid.

Credits

python-ekyc's People

Contributors

febriarief 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.