Code Monkey home page Code Monkey logo

face-recognition-attendance's Introduction

FaceRecognitionAttendance

An Android as frontend and Python as backend face recognition app used on attendance management

#Python #Flask #Tensorflow #Android #Tenserflow-lite

Follow These Steps

Python

  1. Create a python virtual environment -> python3 -m virtualenv env
  2. Active env -> source env/bin/activate
  3. Install all required library -> python3 -m pip install -r requirements.txt (By mistake or any how sklearn not install by above command , use this - python3 -m pip install -U scikit-learn scipy matplotlib)
  4. First Record face of the person using python app - -> python3 face_generate.py -> It will ask you to enter person name, enter and when camera open let read your face. -> for better result, move your face on different direction to record
  5. After Record done, train dataset. It will regenerate new model with all recorded face. Face images will be on dataset named folder. -> python3 face_train.py -> It will create a new model file named "trained_knn_model.clf"
  6. Now keep run the API -> python3 face_api.py -> You can modify this file as per your requirements

Android

  1. Change API URL on WebServices -> ConstantString.java page
  2. Might be you will need to manage camera rotation if you cant see bounding box in face... -> Check CameraActivity.java - line 276 -> You may need to modify as per your requirements. -> If face detctor will not false after detecting in DetectorActivity.java line 284 you will get result by late -> also because it is asynchronous and its keep calling.. -> If result is [] , mean face not matched -> You need to manage flag for this.

Ref--

https://drive.google.com/file/d/1-z2bFYZ4LQO0cz5Pi9ULGNzOg2ppEKrL/view?usp=sharing

face-recognition-attendance's People

Contributors

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