Code Monkey home page Code Monkey logo

faceaccessserver's Introduction

GitHub issues GitHub forks GitHub stars GitHub license

FaceAccess - Face Recognition based Access Management System

As the name suggests this project recognizes faces from a webcam feed. This project is part of a much bigger project to implement a robust face recognition based hassle free entry and exit system.

Getting Started

Follow the instructions below to setup and run this project on your system.

Prerequisites

This project needs the following packages to be installed to run.

1) scipy
2) Flask_SQLAlchemy
3) numpy
4) Flask
5) tensorflow
6) six
7) imutils
8) Pillow
9) imageio
10) scikit_learn

Installing and Running

I strongly suggest to make a virtual environment and then run this project. I've provided the simplest instructions for getting the project up and running on a linux or windows machine.

  1. Make sure you have git installed. Go to https://git-scm.com/ to install it.
  2. Open the terminal.
  3. Type in "git clone https://github.com/dotslash21/FaceAccessServer.git" to clone this repository.
  4. Type in "pip install -r requirements.txt" to install the required packages.
  5. Put your labelled images in img_db folder.
  6. Run the align_face.py file using "python align_face.py" command.
  7. Run the train_classifier.py using "python train_classifier.py" command.
  8. Finally run the app.py with the required arguments. (e.g.- python app.py -i localhost -o 8080)

License

This project is licensed under the MIT License - see the LICENSE.md file for details

Acknowledgments

  • David Sandberg for his FaceNet implementation.

faceaccessserver's People

Contributors

dotslash21 avatar ugu11 avatar

Stargazers

 avatar

Watchers

 avatar  avatar

faceaccessserver's Issues

[BUG] face_id.py loading bounding_boxes filenames as classification labels

Describe the bug
On line 47 of face_id.py,
https://github.com/dotslash21/realtime_face_identification/blob/ac0f50dee6acdb97232fdd5b46d647d5c0f06277/face_id.py#L45-L48

Current implementation to load the classification labels for the SVM uses os.listdir() function which gets all the file and folder names from the directory './aligned_img_db'. The issue is other than the directories there are several bounding_box_XXXXX.txt files which are also getting added to self.faceIds which wrongfully allows any unauthorized person to access.

To Reproduce
Steps to reproduce the behavior:

  1. Follow the instructions here
  2. Open the dashboard. (localhost:8080)
  3. Click on VIEW FEED
  4. See yourself authenticated and labeled bounding_box_XXXXX.txt

Expected behavior
self.faceIds should only have the immediate subdirectories name list as labels.

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.