Git Product home page Git Product logo

real-time-face-recognition's Introduction

Real Time Face Recognition (OpenCV)

Create a fast real-time face recognition app with a few lines of Python code. The scripts have been tested. Please make sure to go through the code for more details on how to debug

gif

Steps:

face_taker.py

  1. Take pictures using the face_taker.py script. After you enter the user name, the script will save 30 images of your face in the images folder and names.json file with association between ID number and user name. The ID number represents a single face. Note: Make sure your face is centered. The window will collapse when all the 30 pictures are taken.

face_train.py

  1. The face_tain.py script will train a model to recognize all the faces from the 30 images taken using face_taker.py and save the training output in the trainer.yml file.

face_recognizer.py

  1. The face_recognizer.py is the main script. The program will recognize the face according to the ID. i.e., If Joe has an ID = 1, his name should appear in the dictionary of names.json as attribute 1 like such:
{
    "1": "Joe"
}

Requirements:

  • pip install opencv-python
  • pip install opencv-contrib-python --upgrade or pip install opencv-contrib-python
  • pip install pillow

real-time-face-recognition's People

Contributors

medsriha avatar bilardi 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.