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/activateor.\.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'
Remove face data from database
>>> from faceattend.face import Face
>>> Face.delete_face("1894559876")
'Person with emp_id 1894559876 has been removed!'
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!'
Employee list
>> from faceattend.face import Face
>>> Face.generate_emp_list()
'CSV file generated!'
How to run?
>>> from faceattend.detect import detect_face
>>> detect_face()
Metadata
Release files for faceattend 0.0.8
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| faceattend-0.0.8.tar.gz | 7.2 kB | Details |
Release files / faceattend-0.0.8.tar.gz
| Download URL | faceattend-0.0.8.tar.gz |
|---|---|
| Size | 7.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9bdfd6ea007e8cb2e7d69cb9760be8202a7efbe0bf753c43e627f62aa2d371fd
|
|
BLAKE2b-256 checksum How to use checksums |
8ef6c6eae01279b5b1d363080ff97ebbb9ecf257d3dc984d2873ec744ec13ec8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.9.6
|