Git Product home page Git Product logo

face-detection-lock's Introduction

Face Detection Lock

Face Detection Lock is a Python program for detecting, recognizing and authenticating faces. The result of the authentication is displayed on a 16x2 LCD Screen. The code is a custom implementation on the code by Adrian Rosebrock found in https://www.pyimagesearch.com/2018/09/24/opencv-face-recognition/

Image Authorized Image Unauthorized

Dependencies

You need to install the following dependencies to get the project running

  • opencv-python
  • imutils
  • smbus
  • numpy

Starting the project

The project depends on the lcddriver repository for displaying the detected names on a screen. After pulling the repository, use the following commands

  • cd FaceDetectionLock/
  • git submodule init
  • git submodule update

Next, make sure you go to lcd/lcddriver.py and change the following lines

  • import i2c_lib -> from lcd import i2c_lib
  • ADDRESS = to the address for your 16x2 LCD

Launch Commands:

  • Exctract the embeddings: python3 extract_embeddings.py --dataset dataset --embeddings output/embeddings.pickle \ --detector face_detection_model --embedding-model openface_nn4.small2.v1.t7
  • Train the model: python3 train_model.py --embeddings output/embeddings.pickle \ --recognizer output/recognizer.pickle --le output/le.pickle
  • Launch the program: python3 recognize_video.py --detector face_detection_model \ --embedding-model openface_nn4.small2.v1.t7 \ --recognizer output/recognizer.pickle --le output/le.pickle

Future Plans for Development

  • Connect an NFC tag as a second way of authentication

Thank you

face-detection-lock's People

Contributors

stefan-krstikj 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.