An attendance system using face recognition
Project description
Face Attend
An attendance system using face detection
Features
- Adding face data of a person to the database
- Detect face of known person using video feed
- Mark attendance of a valid person when detected
- Generating a csv file with attendance for a particalar date
Instructions 📝
- Create a virtual environment:
python3 -m venv .venv
- Activate the virtual environment:
source .venv/bin/activate
- Install the package:
pip install faceattend
[!NOTE] The above instructions are specific to macOS and Linux.
Windows specific instructions
- Creating virtual environments see here
- For issues with installation of the face-recognition package see here
Database setup 🛢
Create the database
-
Import the
create_database()
function fromcreate_database
module
from faceattend.create_datebase import create_database
-
Then just use the
create_database()
function to create the databasecreate_database()
-
When database is successfully created it displays
Database created!
Add valid faces in database
-
Import the
Face
class fromface
module
from faceattend.face import Face
-
Now use the
Face
class's add_face method to add face data and name of the person
Face.add_face("Person's Name","Path to the Person's image file")
-
If the face was added successfully it displays
Face Added
Generating CSV file
For a particular date
- Import the
Attendance
class fromattendance
module
from faceattend.attendance import Attendance
- Now use
Attendance
class'sgenerate_csv_date()
functionAttendance.generate_csv_date("sample_date")
For a particular employee
- Use
Attendance
class'sgenerate_csv_emp()
functionAttendance.generate_csv_date("emp_id")
If CSV file was generated it displays
CSV file generated!
How to run?
- Import the
detect_face()
function from thedetect
module
from faceattend.detect import detect_face
- Then just call the
detect_face()
function
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
File details
Details for the file faceattend-0.0.3.tar.gz
.
File metadata
- Download URL: faceattend-0.0.3.tar.gz
- Upload date:
- Size: 5.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.9.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 08ef8839a2a64f944dabef634dc7d876df87521d9024c9ea536af7d1b3ae74ea |
|
MD5 | 13494a018d9b96f311c4a419308c4c0b |
|
BLAKE2b-256 | bb7663e4415a12ccd46b1c4d980e204bddd98488046c98f11a73889dfb6e69fe |