Giter Site home page Giter Site logo

9614priya / face-liveness-detection-anti-spoofing-web-app Goto Github PK

View Code? Open in Web Editor NEW

This project forked from birdowl21/face-liveness-detection-anti-spoofing-web-app

0.0 0.0 0.0 11.97 MB

An open-source Python web app to distinguish real faces from fake ones based on live camera feed

Python 100.00%

face-liveness-detection-anti-spoofing-web-app's Introduction

Face Liveness Detection (Anti-Spoofing) Web App

A Streamlit WebRTC web app that can identify whether a face comes from a real person or a fake person and prevents the system from giving false verification.

Inspiration

https://github.com/jomariya23156/face-recognition-with-liveness-web-login

I would highly suggest all of you to take a look at this wonderful repo which served as the inspiration for my project.

Drawback of approach

The drawback of the approach taken by jomariya23156 is that although he claims that it is a web app it cannot be used in a server-client scenario as it lacks basic webrtc features.

For more info, please check out this link: https://blog.streamlit.io/how-to-build-the-streamlit-webrtc-component/


โœจ App Features

  • calculates real and fake ratios
  • uses Streamlit's WebRTC features

๐Ÿš€ Quick start

Start developing locally.

Step 1: Clone the repo

Fork the repository. then clone the repo locally by doing -

git clone https://github.com/birdowl21/Face-Liveness-Detection-Anti-Spoofing-Web-App.git

Step 2: Create a virtual environment and activate it. (note: I have used pip)

pip install virtualenv
python -m venv [env-name]
[env-name]\Scripts\activate 

Step 3: cd into the directory

cd Face-Liveness-Detection-Anti-Spoofing-Web-App

Step 4: Install dependencies

pip install -r requirements.txt

Step 5: And you are good to go!

streamlit run app.py

You should now have the application running and accessible at http://localhost:8501.

Step 6 (Optional): Deploy and enjoy!

You could deploy the app to cloud platforms such as Streamlit-sharing and Heroku.

Deployment links:

If you are facing issues with deploying the app remotely, please refer to this link: https://docs.streamlit.io/knowledge-base/deploy/remote-start

Sample Output

Normal

Alt Image text

With picture

Alt Image text

With video

Alt Image text

โœŒ๏ธ Contributing

After cloning & setting up the local project you can push the changes to your github fork and make a pull request.

Pushing the changes

git add .
git commit -m "feat: added new stuff"
git push YOUR_REPO_URL develop

Project Limitations

  • can run on only 3-4 devices at a time.
  • doesn't work well in bright background light.
  • performance varies from browser to browser: Works fast on Chrome and Firefox but is slow on Edge.

That's all folks!

Made by: Sudeep Birudavolu

face-liveness-detection-anti-spoofing-web-app's People

Contributors

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