An attendance system using face recognition
Project description
Face Attend
Whats working?
- Adding face data of a person to the database
- Detect face of known person using video feed
- Provide audio feedback when attendance marked successfully
- Mark attendance of a valid person when detected
- Generating a csv file with attendance for a particular date or a particular employee
Todo
- Further improve the face recognition model
Built with
Instructions 📝
-
Create a virtual environment:
python3 -m venv .venv
-
Activate the virtual environment:
source .venv/bin/activate
or.\.venv\Scripts\Activate.ps1
-
On Windows make sure to set this environment variable using powershell
[Environment]::SetEnvironmentVariable("PYTHONUTF8", "1", "User")
-
Install the package:
pip install faceattend
Windows specific issues
- Creating virtual environments see here
- For issues with installation of the face-recognition package see here
Database setup 🛢
Create the database
>>> from faceattend.create_database import create_database
>>> create_database()
'Database created!'
Add valid faces in database
>>> from faceattend.face import Face
>>> Face.add_face("Akash","Akash.jpg")
'Face added for Akash with employee id 7277962575'
Generating CSV file
For a particular date
>>> from faceattend.attendance import Attendance
>>> Attendance.generate_csv_date("2024-03-04")
'CSV file generated!'
For a particular employee
>>> from faceattend.attendance import Attendance
>>> Attendance.generate_csv_emp("7277962575")
'CSV file generated!'
How to run?
>>> from faceattend.detect import detect_face
>>> detect_face()
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
faceattend-0.0.7.tar.gz
(6.3 kB
view details)
File details
Details for the file faceattend-0.0.7.tar.gz
.
File metadata
- Download URL: faceattend-0.0.7.tar.gz
- Upload date:
- Size: 6.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.9.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7669568547667870331d0b9439eb39e7e7327486fd0d223407e70306820c5d92 |
|
MD5 | 9284379c21f856c5010b4de4f3531eb6 |
|
BLAKE2b-256 | 90c72a8cfc8a1abdb87e9d09da8b26a4d12d74048b21302a12402fe46c8ca142 |