Skip to content

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

Notifications You must be signed in to change notification settings

ntshvicky/FaceRecognitionAttendance

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

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

About

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

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published