Git Product home page Git Product logo

3dfacerecognitiononraspberrypi's Introduction

Introduction

This code is a facial recognition system for RaspberryPi based on 3D frontalization for face alignment and LBPH for recognition.

It is tested on Python3.6, and it uses dlib, Opencv3.0 and flask (for streaming the output to your web browser)

Install requirements

pip install -r requirements.txt

Create your 3D aligned database

save videos of you and people you want to recognize

To use it you must first create a database of the persons you want to recognize by filming the persons using the raspberry pi's camera (resolution: 320x240) and placing the videos of each person in a directory that has his/her name.

python save_videos_from_webcam.py --name_of_person my_name

3D alignment

To build your database of aligned faces run:

python face_recognition_HAAR.py

Frontalization

The frontalization algorithm is based on the implementation in : https://github.com/dougsouza/face-frontalization It has been changed in order to adapt for facial recognition on a raspberry Pi.

Test

To test the algorithm using the raspberry s camera run:

python main.py --ip "the ip adress of the raspberry" -o 8000

Type the ip adress of your raspberry followed by :8000 in your browser to see the video stream

3dfacerecognitiononraspberrypi's People

Contributors

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