Code Monkey home page Code Monkey logo

face_recognization-facenet-'s Introduction

Face_Recognization-FaceNet-

This is simple real Time face recognization using FaceNet. FaceNet provides a unified embedding for face recognition, verification and clustering tasks. It maps each face image into a euclidean space such that the distances in that space correspond to face similarity, i.e. an image of person A will be placed closer to all the other images of person A as compared to images of any other person present in the dataset.
Here in this face recognition system, we are able to recognize a person’s identity by just feeding one picture of that person’s face to the system. And, in case, it fails to recognize the picture, it means that this person’s image is not stored in the system’s database.
To solve this problem, we cannot use only a convolutional neural network for two reasons:
1) CNN doesn’t work on a small training set.
2) It is not convenient to retrain the model every time we add a picture of a new person to the system.
However, we can use Siamese neural network for face recognition.

Siamese neural network

Siamese neural network has the objective to find how similar two comparable things are (e.g. signature verification, face recognition..). This network has two identical subnetworks, which both have the same parameters and weights.

alt text

Code Requirements

You can install Conda for python which resolves all the dependencies for machine learning. OR You can use CMD or terminals.

pip install requirements.txt

Download the pretrained weights

  • Download this pretrained Facenet model and copy to model folder.
  • Download this pretrained MTCNN models and copy to mtcnn_model.

Procedure

  1. Download the code or git clone https://github.com/nidhisri99/Face_Recognization-FaceNet-.git.
  2. Add your images to the "images" folder. (Only one image is enough)
  3. Run face_recognition.py.
    To run use command.
python face_recognition.py

After running your face_recognition.py it should look like this. Alt text

Examples
If the face is found in the images folder.
Alt text

If face is not found.

Alt text

face_recognization-facenet-'s People

Contributors

nidhisri99 avatar

Stargazers

Akhil G avatar

Watchers

Akhil G avatar  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.