Facial Recognition Attendance Taker is an application that helps to take attendance using a webcam and the cascade classifier from OpenCV. A simple csv writer has been created to write the attendance of users whos face has been captured and has not been already written in the csv for that day.
-
Install Python 3.10 from dependencies folder
-
Install Cmake from dependencies folder
-
Instal Visio Studio
Install the c++ compiler of the visual studio code community version -
Update pip, setuptools and wheel
py -m pip install --upgrade pip setuptools wheel
-
Set the execution policy for the current user scope
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
-
Optionally, create a virtual environment
py -m venv tutorial_env tutorial_env\Scripts\activate
-
Install requirements.txt
pip install -r requirements.txt
-
Run example.py
python example.py
-
import FRAT
from frat import FRAT
-
Create FRAT class with callback if any
frat = FRAT(callback)
-
Create encodings
frat.encodeFaces()
Note: Make sure to put an image in a folder inside 'images' before encoding faces. e.g.(image/samuel/samuel.jpg)
-
Start FRAT
frat.start()