The OpenCV-FaceRecognition-Database project is an automated attendance system designed for workplaces and schools. The system utilizes Orange Pi 5 Plus, a Logitech HD C720 Camera, and is powered by OpenCV and Firebase. By implementing real-time face detection and recognition, the project replaces traditional attendance methods with a seamless, secure, and contactless experience.
-
Programming Language: Python
-
Libraries: OpenCV, Firebase Admin SDK, face_recognition, NumPy
-
Hardware:
-
Database: Firebase Realtime Database, Firebase Storage
-
Development Environment: PyCharm IDE
- Real-time face detection and recognition.
- Automated attendance tracking and logging in Firebase.
- Secure image storage and data management via Firebase.
- User-friendly interface displaying employee/student information.
Clone the repository:
git clone https://github.com/EricTra/OpenCV-FaceRecognition-Database.git
cd OpenCV-FaceRecognition-Database
Install required dependencies:
pip install opencv-python firebase-admin face-recognition numpy
- Create a Firebase project on Firebase Console.
- Download the serviceAccountKey.json file and place it in the root directory of the project.
- Update the database URL and storage bucket in the source code (Main.py, AddDataToDatabase.py, etc.) to match your Firebase configuration.
- Encode facial data and save it to a file:
python EncodeGenerator.py
- Add user data to Firebase:
python AddDataToDatabase.py
- Start the facial recognition system:
python Main.py
- Author: Trà Quang Duy
- Email: [email protected]
- LinkedIn: https://www.linkedin.com/in/traquangduy/