This is a Flask server designed to:
- Take inputs from the MFA Access Control Panel (ID, PIN, Image)
- Ask the Facial Recognition System (FRS) what employee ID best matches the image provided (matching the face)
- Looking up the PIN and checking that the PIN and ID matches as it should.
- Send the response back to the MFA Access Control Panel
Python Version: 3.8.10
APT Extras: None
PIP Packages:
pip install requirements.txt
log
- folder containing log files
tmp
- test folder, can be ignored
If database file employees.db
is missing you can execute the populatedb.py
file:
python3 populatedb.py
If you require the employees
(not the auth
) table to be reset, you can stop the server and then run the main script with the following argument:
python3 access_ctrl_server.py initdb
Be advised - running the commands above will delete the database tables and replace them with whatever is in the script... so check if you really need to wipe the tables, and if so, what you're wiping them with...
Otherwise, for NORMAL execution, simply run the following code:
python3 access_ctrl_server.py