Git Product home page Git Product logo

facelock's Introduction

Facelock

Now use your face for login,sudo commands and other authentications on linux.

Requirements

  1. Python3.6 or above
  2. Python Modules:
    • numpy
    • opencv-python
    • opencv-contrib-python

Installing

Step 1

Clone the repositery wherever you like

git clone https://github.com/anish-kmr/facelock.git

Rename from 'facelock-master' to 'facelock' and cd into cloned repo

$ cd facelock

Step 2

If you have all requirements listed above installed ,then you can leave this step.

$ chmod +x requirements.sh
$ ./requirements.sh

This can take a while

Step 3

Install facelock

$ chmod +x install.sh 
$ ./install.sh

You now have facelock installed

Running

Check the status of facelock

$ facelock status

First time, it should say disabled.

Add Faces

You can add faces facelock by webcam.

$ facelock add your_label 

Change 'your_label' to your name or whatever you like.
This will open your webcam. Show your face to webcam for a few seconds at different distances. Press 'q' to close webcam.

Test Facelock

To check whether you are recognized or not ,type this:

$ facelock test

Your label should appear on top of your face. If not, try adding more of your faces to database by 'facelock add <your_existing_label>'

Enable Facelock

$ facelock enable

By doing this, every time you are asked to write password ,your face will be scanned and used to unlock instead.
Note that if your face is not scanned within 2min it will ask for the password.

List Face Labels

To see who all can pass facelock

$ facelock list

The labels listed were set by you when you added them. The number in braces represents the number of face data recorded for particular label.

Remove Faces

To remove faces from facelock records,

$ facelock remove label_to_delete

'label_to_delete' being the label name you want to delete

Disable Facelock

$ facelock disable

facelock's People

Contributors

anish-kmr avatar

Stargazers

 avatar  avatar Udit Bhardwaj avatar Chandan Kumar avatar Shivam Singhal avatar Shreyansh Chouhan avatar

Watchers

 avatar

facelock's Issues

Unable to add label

I tried adding Label using 'facelock add myName', Camera gets opened however I was only able to see my face and nothing else was happening. I tried moving my face to different distances from camera as was mentioned however nothing happened.

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.