Face Recognition Based
Attendance System
Using Python, OpenCV, API, and
MySQL
Presented by: [Your Name]
Introduction
• Manual attendance systems are outdated and prone to errors.
• Our system uses face recognition for secure, automated
attendance.
• Includes API integration and MySQL for better scalability.
Objective
• Automate attendance using face recognition and OpenCV.
• Store attendance in MySQL for persistent storage.
• Enable real-time access using APIs.
Technologies Used
• Python
• OpenCV
• face_recognition Library
• MySQL
• Flask API
• Tkinter (optional GUI)
System Architecture
Webcam Capture Face Detection Face Recognition
Flask API MySQL Database
Working Process
• Capture face using webcam.
• Detect and recognize face using OpenCV and
face_recognition.
• Send recognized face data to Flask API.
• Store attendance in MySQL database with timestamp.
Code Overview
• face_recognition.face_encodings() for encoding faces.
• OpenCV for webcam and image processing.
• Flask REST API to handle attendance entries.
• MySQL Connector to insert attendance data into DB.
Sample Code:
import face_recognition, cv2, mysql.connector, requests
# Capture face, compare with DB
# If match, send POST to Flask API
# Flask API inserts into MySQL with timestamp
Output and Results
• Live webcam feed with recognition display.
• Flask API logs recognized faces in real-time.
• Attendance saved in MySQL with Name, Date, Time.
Advantages
• Secure and scalable using MySQL DB.
• Flexible integration via API.
• Accurate and real-time recognition.
• Modern solution for institutions and offices.
Limitations
• Lighting and camera quality affect accuracy.
• Requires internet or network for API.
• Sensitive to face orientation changes.
Future Scope
• Mobile app access via API.
• Cloud-based face data storage.
• Support for masked face recognition.
• Dashboard analytics for admins.
Conclusion
• Smart attendance using face recognition, API & database.
• Efficient and secure solution replacing manual methods.
• Scalable for enterprise or campus deployment.
Thank You
• Questions and Answers