GithubHelp home page GithubHelp logo

sy1300 / lbph-face-recognition Goto Github PK

View Code? Open in Web Editor NEW

This project forked from leodlca/lbph-face-recognition

0.0 2.0 0.0 100 KB

This is a simple face recognition project using Python OpenCV, made to help some friends at work.

Python 100.00%

lbph-face-recognition's Introduction

lbph-face-recognition

This is a simple face recognition project using Python OpenCV, made to help some friends at work.

Requirements

  • Python 3.6+ (Anaconda is recommended)
  • OpenCV
  • Numpy
  • Pandas

How to Use

First of all, navigate to the directory where the project is.

Photo Shooting

  1. Run python take-photos.py.
  2. Enter an ID and a name.
  3. Enter a camera ID (the default is 0), if you only have one camera in your PC, just press ENTER.
  4. Press the s key to take photos of your face (it will only work when your face is detected and there's enough light in the room).
  5. Press the q key when you're done.
  • Take at least 25 photos of the face of each person.
  • Repeat this with at least one different person, otherwise you will get an error.

Training

  1. Run python train.py.
  2. The program will generate the file "classifiers/lbphClassifier.yml"
  • This may take some time depending on how many photos you took.

Recognizing

  1. Run python recognize.py
  • The number under your name is the "Trust Distance", the less the distance (closer to 0), the more reliable is the classification.

lbph-face-recognition's People

Contributors

leodlca avatar

Watchers

James Cloos avatar Belong_To 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.