- Linux, Mac or Windows
- install python 3
- install pip.
- install Mysql (Community edition)
- install Cmake (on windows just install Visual Studio 2019 or newer with desktop development with C++ option checked)
- open terminal or cmd in project folder and run
pip3 install -r requirements.txt
- You might want to install the following before installing requirements.
- Cmake
- On windows, you must install Microsoft Visual Studio 2019 (or newer) with C/C++ Compiler installed (Check desktop development with c++ option).
- /img: Folder to Save images of faces to recognize
- README.md: Contains all info and instructions for app
- attendancedb: This is where the Database is stored
- face_attendance.py: This is the app that does the matching and writing databases
- OpenCV (cv2) for getting access to camera
- face_recognition for identifying faces and running recognitions
- datetime for getting access to and date-stamping
- mysql connector for creating, connecting and manipulating databases
- Make sure all requirements are in place
- If first time using,
-
- create database with the mysql script (01 - Create Database.sql)
-
- Open face_attendance.py with a text editor (notepad or any) go to line 8, change user and password to your database user and password.
- Name image files with simple short names, note image file extensions and copy to 'img' folder
- Configure by running register_staff.py with python (run
python register_staff.py
on windows orpython3 register_face.py
on Mac/Linux) and follow the prompts - After successfully registering all staffs, make sure camera is connected
- Run face_attendance and it'll automatically start register after a known person gets in camera
- Attendance is stored in attended table.
- Continue your daily activities or grab a cup and coffee and sleep after that.
- Nick
- Prof. David J. Malan
- Brian Yu
- Doug Llyod
- All CS50 team
- Students of CS50
- All Computer Scientists around the globe.