Face Recognition based Attendance System
fras is a Face Recognition based Attendance System. It is a simple web application built using Python flask
and VueJS.
The face recognition task is accomplished using face_recognition.
python3 -m venv ~/.pyenv/FRAS
to create the virtual environment in ~/.pyenv/FRAS
folder.cd
into a directory that you want to work in.git clone https://github.com/bsodhi/fras.git
.cd fras
and then source ~/.pyenv/FRAS/bin/activate
to activate the python virtual environment.sudo apt-get install libmysqlclient-dev
to install MySQL client development library. It will be needed when we install the python connector via pip in following steps.Run pip install -r api_service/requirements.txt
.
NOTE: Some modules may fail to install due to unavailability of certain native libraries or headers on your OS. You can Google the error text to find a solution.
Install necessary dependencies for VueJS app:
cd client_app
npm install
After setting up the workspace as per the steps listed above you can deploy and run the application. Following are the steps:
cd fras/client_app
npm run build
cd fras/api_service
source ~/.pyenv/FRAS/bin/activate
to activate the python virtual environment.python
to start a python session, and issue the following commands to setup the database:from models import *
setup_demo_db()
python fras_app.py
to start the web application.http://localhost:4567/fras/app/index.html
admin
and password admin
(Or whatever you set via the setup_demo_db()
)