How gokhulnath/automatic-attendance-system-using-face-recognition-and-rfid works
Main Components
a. Face Recognition Module:
• Components include scripts like train.py (for training the recognition model), detect.py (to detect faces from images or video capture), and identify.py (to identify detected faces).
• Supporting files such as Cropped_faces (likely storing preprocessed or sample face images) and dataset directories (dataset/user01, dataset/user02) provide image data for training/testing.
• Additional helper scripts like add_person_faces.py, create_person.py, and create_person_group.py help with managing face data entries.
b. RFID Module:
• The RFID integration is represented by rfid.py which likely handles reading RFID tags attached to students’ ID cards.
• get_status.py might be used to query or monitor the RFID reader’s status.
c. Attendance and Reporting Module:
• Scripts like result_spreadsheet.py, spreadsheet.py, reports.xlsx, result.xlsx, and results.py indicate that attendance data is collated, processed, and reported—possibly integrating data from both face recognition and RFID.
d. Initiation and Coordination:
• The initiate.py script appears to tie the overall process together, coordinating between face capture, RFID scan, and updating attendance records.
e. Auxiliary Components:
• Files like add_student.py likely help add new user information into the system.
• Global_variables.py probably holds configuration or constant values used across the system.
• Test images in testimages (and the note files) could be used for testing and documentation support.
Data Flow and Relationships
• External Hardware:
• Camera: Captures the live feed for face detection.
• RFID Reader: Reads RFID tags from student ID cards.
• Data Input:
• The camera feeds images to the Face Recognition Module.
• The RFID Reader sends tag data via the RFID Module.
• Processing:
• The face detection (detect.py) and identification (identify.py) scripts process image data using pretrained models (trained by train.py).
• The RFID module (rfid.py and get_status.py) processes RFID inputs.
• Integration & Validation:
• The initiate.py script coordinates these two streams, cross-checking face recognition output with RFID input.
• Output and Reporting:
• Once validated, attendance records are updated and stored.
• Reporting scripts (result_spreadsheet.py, spreadsheet.py, results.py) and Excel sheets (reports.xlsx, result.xlsx) generate attendance reports.
Architectural Patterns and Design Principles
• Modular Design:
• The project is broken down into distinct modules (face recognition, RFID handling, attendance logging) which communicate with one another.
• Separation of Concerns:
• Each script focuses on a specific task—either handling image processing, RFID data, or report generation.
• Data Flow and Integration:
• The system integrates hardware-derived inputs (camera and RFID) in a coordinated workflow to validate student attendance.
Relevant Technologies, Frameworks, and Libraries
• Python is the core programming language (given the *.py files and __pycache__ directory).
• Likely use of image processing libraries (such as OpenCV) for face detection and possibly specialized libraries (like face_recognition) for identification.
• RFID module may involve serial communication libraries to interface with the hardware.
• Data reporting might involve libraries such as pandas or openpyxl to manage Excel files.