The Smart Attendance System is an innovative solution to manage attendance using advanced technologies including face comparison, database querying with Language Models, and more. This repository will guide you through the setup and execution process.
Before getting started, ensure you have the following:
- Anaconda for managing virtual environments.
- Docker for running the face compare API.
- Node.js and npm for the React app.
-
Setup Conda Virtual Environment:
- Navigate to both the
Anti-spoofing
andServer
folders and install the necessary dependencies using therequirements.txt
file:conda create --name smart-attendance python=3.7 conda activate smart-attendance pip install -r Anti-spoofing/requirements.txt pip install -r Server/requirements.txt
- Navigate to both the
-
Docker Environment:
- Install Docker from the official Docker website.
- Create an environment to run the face comparison API.
-
React App Dependencies:
- Navigate to the React app folder and install its requirements:
cd ReactApp npm install
- Navigate to the React app folder and install its requirements:
-
DB-GPT & LLM Setup:
- Follow the instructions on this link to install and setup
db-gpt
andllm
.
- Follow the instructions on this link to install and setup
-
Firebase & Google Sheet API:
- Setup Firebase for your project.
- Activate the Google Sheet API for your Firebase project.
-
Update Credentials:
- In the server code, replace any instances of
{your-credentials}
or{api-key}
with your actual credentials.
- In the server code, replace any instances of
-
Anti-Spoofing:
- Activate the conda environment and run
test.py
in theAnti-spoofing
folder:conda activate smart-attendance python Anti-spoofing/test.py
- Activate the conda environment and run
-
Start the Server:
- While still in the virtual environment, navigate to the
Server
folder and runRestApi.py
:python Server/RestApi.py
- While still in the virtual environment, navigate to the
-
React App:
- Navigate to the React app directory and start the app:
cd ReactApp npm start
- Navigate to the React app directory and start the app:
-
Face Comparison with Docker:
- Start your Docker container.
- Navigate to the compare face UI in your web browser.
- Login, and then either train the dataset or compare faces.
-
DB-GPT Server for LLM:
- Start the
db-gpt
server. This will allow the Language Model to communicate with your database. - Ensure your database is uploaded and properly configured with the server.
- Start the